From c98e4edb604ccb02d44b8554013bb1da3d29a6e6 Mon Sep 17 00:00:00 2001 From: Roman Szturc Date: Fri, 8 Nov 2024 17:26:54 +0100 Subject: [PATCH] Error displayed as part of JSON version data --- CHANGELOG.md | 2 +- .../eiffel/remrem/generate/controller/VersionService.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dd9910..4382ad8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 2.1.12 +## 2.1.13 - Endpoint /versions made more robust. ## 2.1.11 diff --git a/service/src/main/java/com/ericsson/eiffel/remrem/generate/controller/VersionService.java b/service/src/main/java/com/ericsson/eiffel/remrem/generate/controller/VersionService.java index 64a839d..c5527a9 100644 --- a/service/src/main/java/com/ericsson/eiffel/remrem/generate/controller/VersionService.java +++ b/service/src/main/java/com/ericsson/eiffel/remrem/generate/controller/VersionService.java @@ -115,6 +115,7 @@ public Map getServiceVersion() { // "WEB-INF" was not found in the path, strange... log.error("Cannot find '" + WEB_INF + "' in the path '" + resourcesPath + "'. Not loaded from a WAR file?"); + serviceVersion.put(VERSION, "\"ERROR: " + META_INF_MANIFEST_MF + " not found; was the service run from a WAR file?\""); return serviceVersion; }