]> https://gitweb.dealii.org/ - dealii.git/commit
Tighten up error messages. 3189/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 4 Oct 2016 19:57:04 +0000 (13:57 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 4 Oct 2016 19:57:04 +0000 (13:57 -0600)
commitcca7be27b793843142516e269cc0ca4d79f29375
tree6419d66c3d2a11213a8807e8a58336b4f57a572e
parentd356c5d00fa71fb7ab1f79a98d2352ccc1d5dfb5
Tighten up error messages.

It has long annoyed me that when we print exception messages that were created
via ExcMessage, that the information is really duplicative. Example:

--------------------------------------------------------
An error occurred in line <710> of file <.../step-6.cc> in function
    int main()
The violated condition was:
    false
The name and call sequence of the exception was:
    ExcMessage ("abc" "def")
Additional Information:
abcdef

Stacktrace:
-----------
#0  ./step-6: main
--------------------------------------------------------

Here, the text that comes after 'The name and call sequence...'
is duplicative with what comes after 'Additional Information:'.

This is specifically the case for ExcMessage errors because
there *everything* that constructs the 'Additional information'
will actually be also under 'The name and...' part.

This patch cleans this up by omitting the first of these two
parts if the error message was created via ExcMessage.
source/base/exceptions.cc

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.