Code Review
/
portal
/
ric-dashboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Integrate EPSDK-FW library for auth and users
[portal/ric-dashboard.git]
/
webapp-frontend
/
src
/
app
/
ran-control
/
ran-connection-dialog.component.ts
diff --git
a/webapp-frontend/src/app/ran-control/ran-connection-dialog.component.ts
b/webapp-frontend/src/app/ran-control/ran-connection-dialog.component.ts
index
25442f7
..
7c63f13
100644
(file)
--- a/
webapp-frontend/src/app/ran-control/ran-connection-dialog.component.ts
+++ b/
webapp-frontend/src/app/ran-control/ran-connection-dialog.component.ts
@@
-86,9
+86,14
@@
export class RanControlConnectDialogComponent implements OnInit {
this.notifService.success('Connect succeeded!');
this.dialogRef.close(true);
},
this.notifService.success('Connect succeeded!');
this.dialogRef.close(true);
},
- ( (
erro
r: HttpErrorResponse) => {
+ ( (
he
r: HttpErrorResponse) => {
this.processing = false;
this.processing = false;
- this.errorService.displayError('RAN Connection Failed: ' + error.message);
+ // the error field carries the server's response
+ let msg = her.message;
+ if (her.error && her.error.message) {
+ msg = her.error.message;
+ }
+ this.errorService.displayError('Connect failed: ' + msg);
// keep the dialog open
})
);
// keep the dialog open
})
);