Skip to content

Commit 41a8961

Browse files
Improve version mismatch logs (#3383)
Signed-off-by: Julien Tinguely <julien.tinguely@digitalasset.com>
1 parent be95606 commit 41a8961

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/common/src/main/scala/org/lfdecentralizedtrust/splice/environment/AppConnection.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,12 @@ abstract class HttpAppConnection(
229229
val myVersion = BuildInfo.compiledVersion
230230
val compatibleVersion = BuildInfo.compatibleVersion
231231
if (versionInfo.version != myVersion && versionInfo.version != compatibleVersion) {
232-
val errorMsg = s"Version mismatch detected, please download the latest bundle. " +
233-
s"Your executable is on $myVersion, while the application you are connecting to is on ${versionInfo.version}"
232+
val msg =
233+
s"Version mismatch detected: your executable is on $myVersion, while the application you are connecting to is on ${versionInfo.version}."
234234
if (upgradesConfig.failOnVersionMismatch)
235-
sys.error(errorMsg)
235+
sys.error(s"$msg. Please download the latest bundle.")
236236
else
237-
logger.info(errorMsg)(TraceContext.empty)
237+
logger.info(s"$msg. Consider downloading the latest bundle.")(TraceContext.empty)
238238
} else {
239239
logger.debug(
240240
s"Version verification passed for $serviceName, server is on the same version as mine, or a compatible one: ${versionInfo}"

0 commit comments

Comments
 (0)