Adds print error in case of get broken dataset profile

This commit is contained in:
apapachristou 2020-09-14 14:31:20 +03:00
parent c943a2d297
commit abd8fcf25f
1 changed files with 2 additions and 1 deletions

View File

@ -85,8 +85,9 @@ export class DatasetProfileEditorComponent extends BaseComponent implements OnIn
this.form = this.dataModel.buildForm();
}
this.prepareForm();
} catch {
} catch (error) {
this.logger.error('Could not parse MasterItem: ' + data);
console.log(error)
this.uiNotificationService.snackBarNotification(this.language.instant('NOTIFICATIONS.DEFAULT.ERROR'), SnackBarNotificationLevel.Error);
}
},