We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3d2474 commit 5685b57Copy full SHA for 5685b57
1 file changed
PWGHF/D2H/Macros/runMassFitter.C
@@ -92,6 +92,10 @@ void runMassFitter(const std::string& configFileName)
92
config.ParseStream(is);
93
fclose(configFile);
94
95
+ if (config.HasParseError()) {
96
+ throw std::runtime_error("ERROR: Parsing the configuration json file failed. Check the config for correct formatting");
97
+ }
98
+
99
bool const isMc = readJsonField<bool>(config, "IsMC");
100
bool const writeSignalPar = readJsonField<bool>(config, "WriteSignalPar", true);
101
std::string const particleName = readJsonField<std::string>(config, "Particle");
0 commit comments