Improved error printouts
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / policy-control / policy-type.datasource.ts
index 97d792e..983fc96 100644 (file)
@@ -51,7 +51,7 @@ export class PolicyTypeDataSource extends DataSource<PolicyType> {
         this.policySvc.getPolicyTypes()
             .pipe(
                 catchError((her: HttpErrorResponse) => {
-                    this.notificationService.error('Failed to get policy types: ' + her.message);
+                    this.notificationService.error('Failed to get policy types: ' + her.statusText + ', ' + her.error);
                     return of([]);
                 }),
                 finalize(() => this.loadingSubject.next(false))