Skip to content

Commit 37e40dc

Browse files
committed
replace exception with return error in the entry point
1 parent c40c3d6 commit 37e40dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PWGHF/D2H/Macros/runMassFitter.C

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,8 @@ void readJsonVector(std::vector<T>& vec, const Document& config, const std::stri
633633
int main(int argc, const char* argv[])
634634
{
635635
if (argc == 1) {
636-
throw std::runtime_error("Not enough arguments. Please use\n./runMassFitter configFileName");
636+
std::cerr << "Not enough arguments. Please use\n./runMassFitter configFileName\n";
637+
return 1;
637638
}
638639

639640
const std::string configFileName = argv[1];

0 commit comments

Comments
 (0)