]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve error message according to Martin K's suggestions. 625/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 2 Mar 2015 14:43:10 +0000 (08:43 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 2 Mar 2015 14:43:10 +0000 (08:43 -0600)
include/deal.II/base/exceptions.h

index de4498903ea84ac6a832602d9790501ddcab2685..c5192779dde57860ef487027477d39c5d2ea2cd4 100644 (file)
@@ -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.

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.