From: Peter Munch Date: Tue, 6 Oct 2020 09:03:11 +0000 (+0200) Subject: Improve error message of ExcFileNotOpen X-Git-Tag: v9.3.0-rc1~1028^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23ae8d95e32e4b9fb11d190e5bac9f41e6126797;p=dealii.git Improve error message of ExcFileNotOpen --- diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 171411eb07..588fa60d9d 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -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