Skip to content

Commit

Permalink
add missing throw statements
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienDoerner committed Apr 23, 2024
1 parent e27102b commit 81c34f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GridTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ ref_ptr<Grid3f> 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);
}


Expand Down Expand Up @@ -418,7 +418,7 @@ ref_ptr<Grid1f> 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<Grid3f> grid, std::string filename, double c, bool saveProp) {
Expand Down

0 comments on commit 81c34f3

Please sign in to comment.