Return unknown version if project version is not available
This commit is contained in:
parent
f9ecaa8ad6
commit
c2801c447d
@ -30,6 +30,7 @@ public class VersionCommand implements JsonRpcSingleCommand<Void>, JsonRpcMultiC
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void outputVersion(final JsonWriter jsonWriter) {
|
private void outputVersion(final JsonWriter jsonWriter) {
|
||||||
jsonWriter.write(Map.of("version", BaseConfig.PROJECT_VERSION));
|
jsonWriter.write(Map.of("version",
|
||||||
|
BaseConfig.PROJECT_VERSION == null ? "unknown" : BaseConfig.PROJECT_VERSION));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user