From d80cbd46f988bccc38ee42d2651f83364bb7e042 Mon Sep 17 00:00:00 2001 From: Christoph Grueninger <christoph.grueninger@iws.uni-stuttgart.de> Date: Wed, 10 Apr 2013 15:23:11 +0000 Subject: [PATCH] [start.hh] Output error message from exception, it might be useful. (reviewed by pnuske) git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@10527 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/common/start.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dumux/common/start.hh b/dumux/common/start.hh index 9e890f147e..edf78ae0b3 100644 --- a/dumux/common/start.hh +++ b/dumux/common/start.hh @@ -500,10 +500,11 @@ int start(int argc, return 1; } catch (Dune::DGFException & e) { - std::cerr << "DGF exception thrown. " - "Most likely, the DGF file name is wrong " + std::cerr << "DGF exception thrown (" << e << + "). Most likely, the DGF file name is wrong " "or the DGF file is corrupted, " - "e.g. missing hash at end of file or wrong number (dimensions) of entries." << std::endl; + "e.g. missing hash at end of file or wrong number (dimensions) of entries." + << std::endl; return 2; } catch (Dune::Exception &e) { -- GitLab