Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling on failed writes #904

Draft
wants to merge 10 commits into
base: dev
Choose a base branch
from
Prev Previous commit
Next Next commit
Write proper file and line
  • Loading branch information
lkotipal committed Apr 23, 2024
commit 8d7deadbbb228070a9e6d0bc83727cd158c58883
3 changes: 2 additions & 1 deletion vlasiator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,8 @@ int main(int argn,char* args[]) {
writeGhosts
) == false
) {
abort_mpi("FAILED TO WRITE GRID", 1);
// TODO make this std::format when we get C++20
abort_mpi(std::string(__FILE__) + ":" + std::to_string(__LINE__) + ": FAILED TO WRITE GRID", 1);
}

phiprof::stop("Initialization");
Expand Down
Loading