Check if jvmArguments setting is valid json

This commit is contained in:
Fierelier 2021-03-30 01:18:02 +02:00
parent 728969c8f1
commit 4be0c7c66f

View File

@ -256,6 +256,8 @@ def main():
else: else:
lv[argSplit[0]] = True lv[argSplit[0]] = True
json.loads(lv["jvmArguments"])
if not lv["osName"] in ["windows","linux","macos"]: if not lv["osName"] in ["windows","linux","macos"]:
print("Warning, unsupported OS detected: " +lv["osName"]) print("Warning, unsupported OS detected: " +lv["osName"])
print("Needs to be either windows, linux or macos. Define it with osName=name in the config.") print("Needs to be either windows, linux or macos. Define it with osName=name in the config.")