From abd8fcf25fa3c9f2362dd3f32409319f226fe436 Mon Sep 17 00:00:00 2001 From: apapachristou Date: Mon, 14 Sep 2020 14:31:20 +0300 Subject: [PATCH] Adds print error in case of get broken dataset profile --- .../dataset-profile/editor/dataset-profile-editor.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.ts b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.ts index 020aeb802..79e5da735 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.ts +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.ts @@ -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); } },