Fixing null issue and adding zooming
[so.git] / so-monitoring / so-monitoring-ui / src / main / frontend / src / app / http-error-handler.service.ts
index 16d274f..b22fa6e 100644 (file)
@@ -17,7 +17,7 @@ See the License for the specific language governing permissions and
 SPDX-License-Identifier: Apache-2.0\r
 ============LICENSE_END=========================================================\r
 \r
-@authors: ronan.kenny@ericsson.com, waqas.ikram@ericsson.com\r
+@authors: ronan.kenny@est.tech, waqas.ikram@est.tech\r
 */\r
 \r
 import { Injectable } from '@angular/core';\r
@@ -44,9 +44,9 @@ export class HttpErrorHandlerService {
         this.popup.error("Internal Service Error occured for operation: " + operation + " please check backend service log. status code: " + error.status);\r
       }\r
       console.error(\r
-        'Backend returned code ${error.status}, ' +\r
-        'body was: ${error.error}');\r
-      return throwError(error.error || "Internal Service Error occured for operation: " + operation + " please check backend service log. status code: " + error.status);\r
+        'Backend returned status code: ', error.status + ' from URL ' + url);\r
+      return throwError(error.error || "Internal Service Error occured for operation: " +\r
+        operation + ". Please check backend service log. Status code: " + error.status);\r
     };\r
 \r
   }\r