diff --git a/src/app/configuration/vmtemplates/edit-vmtemplate/edit-vmtemplate.component.ts b/src/app/configuration/vmtemplates/edit-vmtemplate/edit-vmtemplate.component.ts index c7cb1566..b47757a0 100644 --- a/src/app/configuration/vmtemplates/edit-vmtemplate/edit-vmtemplate.component.ts +++ b/src/app/configuration/vmtemplates/edit-vmtemplate/edit-vmtemplate.component.ts @@ -202,7 +202,7 @@ export class EditVmtemplateComponent implements OnInit, OnChanges { }, error: (e: HttpErrorResponse) => { this.alert.danger( - 'Error saving VM Template: ' + e.error.message, + 'Error saving VM Template: ' + e.message, false, DEFAULT_ALERT_ERROR_DURATION, ); @@ -219,7 +219,7 @@ export class EditVmtemplateComponent implements OnInit, OnChanges { }, error: (e: HttpErrorResponse) => { this.alert.danger( - 'Error saving VM Template: ' + e.error.message, + 'Error saving VM Template: ' + e.message, false, DEFAULT_ALERT_ERROR_DURATION, ); diff --git a/src/app/configuration/vmtemplates/vmtemplates.component.ts b/src/app/configuration/vmtemplates/vmtemplates.component.ts index c61e5074..8c805388 100644 --- a/src/app/configuration/vmtemplates/vmtemplates.component.ts +++ b/src/app/configuration/vmtemplates/vmtemplates.component.ts @@ -85,7 +85,7 @@ export class VmtemplatesComponent implements OnInit { }, error: (e: HttpErrorResponse) => { const alertMsg = - 'Error deleting virtual machine template: ' + e.error.message; + 'Error deleting virtual machine template: ' + e.message; this.alert.danger(alertMsg, false, DEFAULT_ALERT_ERROR_DURATION); }, }); diff --git a/src/app/course/course-wizard/course-wizard.component.ts b/src/app/course/course-wizard/course-wizard.component.ts index 91c6f464..f0968e06 100644 --- a/src/app/course/course-wizard/course-wizard.component.ts +++ b/src/app/course/course-wizard/course-wizard.component.ts @@ -272,7 +272,7 @@ export class CourseWizardComponent implements OnChanges, OnInit { }, (e: HttpErrorResponse) => { this.alertDanger( - 'Error listing dynmamic scenarios: ' + e.error.message, + 'Error listing dynmamic scenarios: ' + e.message, ); }, ); @@ -348,7 +348,7 @@ export class CourseWizardComponent implements OnChanges, OnInit { this.coursesRefresher.emit(); }, (e: HttpErrorResponse) => { - this.alertText = 'Error creating object: ' + e.error.message; + this.alertText = 'Error creating object: ' + e.message; this.isAlert = true; }, ); @@ -363,7 +363,7 @@ export class CourseWizardComponent implements OnChanges, OnInit { this.coursesRefresher.emit(); }, (e: HttpErrorResponse) => { - this.alertText = 'Error creating object: ' + e.error.message; + this.alertText = 'Error creating object: ' + e.message; this.isAlert = true; }, ); diff --git a/src/app/course/course.component.ts b/src/app/course/course.component.ts index 8dc3c6f5..47159620 100644 --- a/src/app/course/course.component.ts +++ b/src/app/course/course.component.ts @@ -111,7 +111,7 @@ export class CourseComponent implements OnInit { this.selectedCourse = null; }, error: (e: HttpErrorResponse) => { - const alertMsg = 'Error deleting object: ' + e.error.message; + const alertMsg = 'Error deleting object: ' + e.message; this.alert.danger(alertMsg, true, DEFAULT_ALERT_ERROR_DURATION); }, }); diff --git a/src/app/scenario/scenario.component.ts b/src/app/scenario/scenario.component.ts index b9f55bd0..baed7eea 100644 --- a/src/app/scenario/scenario.component.ts +++ b/src/app/scenario/scenario.component.ts @@ -52,7 +52,7 @@ export class ScenarioComponent implements OnInit { this.selectedscenario = s; }, error: (e: HttpErrorResponse) => { - const alertMsg = 'Error retrieving object: ' + e.error.message; + const alertMsg = 'Error retrieving object: ' + e.message; this.alert.danger(alertMsg, true, DEFAULT_ALERT_ERROR_DURATION); }, }); @@ -67,7 +67,7 @@ export class ScenarioComponent implements OnInit { this.scenarioService.get(scenario.id).subscribe({ next: (scenario) => (this.selectedscenario = scenario), error: (e: HttpErrorResponse) => { - const alertMsg = 'Error deleting object: ' + e.error.message; + const alertMsg = 'Error deleting object: ' + e.message; this.alert.danger(alertMsg, true, DEFAULT_ALERT_ERROR_DURATION); }, }); @@ -82,7 +82,7 @@ export class ScenarioComponent implements OnInit { this.scenarioService.list(true).subscribe({ next: (sList: Scenario[]) => (this.filteredScenarios = sList), error: (e: HttpErrorResponse) => { - const alertMsg = 'Error listing objects: ' + e.error.message; + const alertMsg = 'Error listing objects: ' + e.message; this.alert.danger(alertMsg, true, DEFAULT_ALERT_ERROR_DURATION); }, }); @@ -96,7 +96,7 @@ export class ScenarioComponent implements OnInit { this.refresh(); }, error: (e: HttpErrorResponse) => { - const alertMsg = 'Error cloning scenario: ' + e.error.message; + const alertMsg = 'Error cloning scenario: ' + e.message; this.alert.danger(alertMsg, true, DEFAULT_ALERT_ERROR_DURATION); }, }) @@ -110,7 +110,7 @@ export class ScenarioComponent implements OnInit { this.refresh(); }, error: (e: HttpErrorResponse) => { - const alertMsg = 'Error deleting object: ' + e.error.message; + const alertMsg = 'Error deleting object: ' + e.message; this.alert.danger(alertMsg, true, DEFAULT_ALERT_ERROR_DURATION); }, });