@@ -52,7 +52,7 @@ export class ScenarioComponent implements OnInit {
5252 this . selectedscenario = s ;
5353 } ,
5454 error : ( e : HttpErrorResponse ) => {
55- const alertMsg = 'Error retrieving object: ' + e . error . message ;
55+ const alertMsg = 'Error retrieving object: ' + e . message ;
5656 this . alert . danger ( alertMsg , true , DEFAULT_ALERT_ERROR_DURATION ) ;
5757 } ,
5858 } ) ;
@@ -67,7 +67,7 @@ export class ScenarioComponent implements OnInit {
6767 this . scenarioService . get ( scenario . id ) . subscribe ( {
6868 next : ( scenario ) => ( this . selectedscenario = scenario ) ,
6969 error : ( e : HttpErrorResponse ) => {
70- const alertMsg = 'Error deleting object: ' + e . error . message ;
70+ const alertMsg = 'Error deleting object: ' + e . message ;
7171 this . alert . danger ( alertMsg , true , DEFAULT_ALERT_ERROR_DURATION ) ;
7272 } ,
7373 } ) ;
@@ -82,7 +82,7 @@ export class ScenarioComponent implements OnInit {
8282 this . scenarioService . list ( true ) . subscribe ( {
8383 next : ( sList : Scenario [ ] ) => ( this . filteredScenarios = sList ) ,
8484 error : ( e : HttpErrorResponse ) => {
85- const alertMsg = 'Error listing objects: ' + e . error . message ;
85+ const alertMsg = 'Error listing objects: ' + e . message ;
8686 this . alert . danger ( alertMsg , true , DEFAULT_ALERT_ERROR_DURATION ) ;
8787 } ,
8888 } ) ;
@@ -96,7 +96,7 @@ export class ScenarioComponent implements OnInit {
9696 this . refresh ( ) ;
9797 } ,
9898 error : ( e : HttpErrorResponse ) => {
99- const alertMsg = 'Error cloning scenario: ' + e . error . message ;
99+ const alertMsg = 'Error cloning scenario: ' + e . message ;
100100 this . alert . danger ( alertMsg , true , DEFAULT_ALERT_ERROR_DURATION ) ;
101101 } ,
102102 } )
@@ -110,7 +110,7 @@ export class ScenarioComponent implements OnInit {
110110 this . refresh ( ) ;
111111 } ,
112112 error : ( e : HttpErrorResponse ) => {
113- const alertMsg = 'Error deleting object: ' + e . error . message ;
113+ const alertMsg = 'Error deleting object: ' + e . message ;
114114 this . alert . danger ( alertMsg , true , DEFAULT_ALERT_ERROR_DURATION ) ;
115115 } ,
116116 } ) ;
0 commit comments