diff options
author | 2019-10-25 14:04:25 +0900 | |
---|---|---|
committer | 2019-10-25 14:04:32 +0900 | |
commit | 78b33155a14fd35d9c0db7b0fa91fdfd7573bfbb (patch) | |
tree | 0af82c1a690b0e0fc949f50a119c78c0d8678d6d /portal-BE/src/main/java/org/onap | |
parent | 7c2e7e2dc9a82dda22929a586c5b10d089163b73 (diff) |
Fix sonar issues
Either log or rethrow this exception
Change this "try" to a try-with-resources
Move string literal on the left side of this string comparison
Issue-ID: PORTAL-562
Change-Id: I8966c035bb8c36026172457231f426179bb3ed48
Signed-off-by: Parshad Patel <pars.patel@samsung.com>
Diffstat (limited to 'portal-BE/src/main/java/org/onap')
-rw-r--r-- | portal-BE/src/main/java/org/onap/portal/controller/WidgetMSController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/portal-BE/src/main/java/org/onap/portal/controller/WidgetMSController.java b/portal-BE/src/main/java/org/onap/portal/controller/WidgetMSController.java index b9434820..ab1b2806 100644 --- a/portal-BE/src/main/java/org/onap/portal/controller/WidgetMSController.java +++ b/portal-BE/src/main/java/org/onap/portal/controller/WidgetMSController.java @@ -74,7 +74,7 @@ public class WidgetMSController { widgetMService.getServiceLocation(service, null)); } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, "Couldn't get the service location"); + logger.error(EELFLoggerDelegate.errorLogger, "Couldn't get the service location", e); return new PortalRestResponse<>(PortalRestStatusEnum.ERROR, "Error!", "Couldn't get the service location"); |