From 38b75cdc8a5621d3f3508b0f5db42a24786f7768 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 2 Mar 2015 08:43:10 -0600 Subject: [PATCH] Improve error message according to Martin K's suggestions. --- include/deal.II/base/exceptions.h | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) 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. -- 2.39.5