Fix json parsing error handling, other small fixes

This commit is contained in:
Maschell
2024-11-29 20:17:30 +01:00
parent d989801b36
commit 82445acaf0
13 changed files with 88 additions and 46 deletions

View File

@@ -19,7 +19,7 @@ namespace WUPSBackendSettings {
std::string folderPath = getModulePath() + "/configs/";
std::string filePath = folderPath + "wupsbackend.json";
if (!ParseJsonFromFile(filePath, j)) {
if (ParseJsonFromFile(filePath, j) != UTILS_IO_ERROR_SUCCESS) {
return false;
}