diff --git a/src/GridTools.cpp b/src/GridTools.cpp index 27f38ab2d..a930a7f6f 100644 --- a/src/GridTools.cpp +++ b/src/GridTools.cpp @@ -324,7 +324,7 @@ ref_ptr loadGrid3fFromTxt(std::string filename, double c) { return grid; } } - std::runtime_error("could not find GridProperties in file " + filename); + throw std::runtime_error("could not find GridProperties in file " + filename); } @@ -418,7 +418,7 @@ ref_ptr loadGrid1fFromTxt(std::string filename, double c) { return grid; } } - std::runtime_error("could not find GridProperties in file " + filename); + throw std::runtime_error("could not find GridProperties in file " + filename); } void dumpGridToTxt(ref_ptr grid, std::string filename, double c, bool saveProp) {