Skip to content

Commit

Permalink
update error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienDoerner committed Jun 11, 2024
1 parent 81c34f3 commit a1adcde
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 @@ -282,7 +282,7 @@ ref_ptr<Grid3f> loadGrid3fFromTxt(std::string filename, double c) {
std::string name, type;
ss >> name >> name >> name >> type;
if (type != "Grid3f")
throw std::runtime_error("try to load Grid3f, but Gridproperties assume grid type " + type);
throw std::runtime_error("Tried to load Grid3f, but Gridproperties assume grid type " + type);

// grid origin
double x, y, z;
Expand Down Expand Up @@ -376,7 +376,7 @@ ref_ptr<Grid1f> loadGrid1fFromTxt(std::string filename, double c) {
std::string name, type;
ss >> name >> name >> name >> type;
if (type != "Grid1f")
throw std::runtime_error("try to load Grid1f, but Gridproperties assume grid type " + type);
throw std::runtime_error("Tried to load Grid1f, but Gridproperties assume grid type " + type);

// grid origin
double x, y, z;
Expand Down

0 comments on commit a1adcde

Please sign in to comment.