Skip to content

Commit

Permalink
Merge pull request #11012 from peterrum/write_vtu_with_pvtu_record_er…
Browse files Browse the repository at this point in the history
…ror_2

Improve error message of ExcFileNotOpen
  • Loading branch information
tjhei committed Oct 6, 2020
2 parents a664a39 + 23ae8d9 commit b956691
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion include/deal.II/base/exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,19 @@ namespace StandardExceptions
*/
DeclException1(ExcFileNotOpen,
std::string,
<< "Could not open file " << arg1 << ".");
<< "Could not open file " << arg1
<< "."
"\n\n"
"If this happens during an operation that tries to read "
"data: you may be "
"trying to read from a file that doesn't exist or that is "
"not readable given its file permissions."
"\n\n"
"If this happens during an operation that tries to write "
"data: you may be trying to write to a file to which file "
"or directory permissions do not allow you to write. A "
"typical example is where you specify an output file in "
"a directory that does not exist.");

/**
* Exception denoting a part of the library or application program that has
Expand Down

0 comments on commit b956691

Please sign in to comment.