From: Wolfgang Bangerth Date: Mon, 2 Mar 2015 14:43:10 +0000 (-0600) Subject: Improve error message according to Martin K's suggestions. X-Git-Tag: v8.3.0-rc1~396^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38b75cdc8a5621d3f3508b0f5db42a24786f7768;p=dealii.git Improve error message according to Martin K's suggestions. --- diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index de4498903e..c5192779dd 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -673,15 +673,27 @@ namespace StandardExceptions * An error occurred reading or writing a file. */ DeclExceptionMsg (ExcIO, - "An input/output error has occurred. Ther are a number of " - "reasons why this may be happening. First, you may be " + "An input/output error has occurred. There are a number of " + "reasons why this may be happening, both for reading and " + "writing operations." + "\n\n" + "If this happens during an operation that tries to read " + "data: First, you may be " "trying to read from a file that doesn't exist or that is " - "not readable given its file permissions. Second, you " - "may be trying to write to a file to which file or " - "directory permissions do not allow you to write. " - "Finally, deal.II uses this error at times if it tries to " + "not readable given its file permissions. Second, deal.II " + "uses this error at times if it tries to " "read information from a file but where the information " - "in the file does not correspond to the expected format."); + "in the file does not correspond to the expected format. " + "An example would be a truncated file, or a mesh file " + "that contains not only sections that describe the " + "vertices and cells, but also sections for additional " + "data that deal.II does not understand." + "\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."); /** * An error occurred opening the named file.