diff --git a/Utils/otbDEMConvert.cxx b/Utils/otbDEMConvert.cxx index 4c6bf334e42d14e6f88fa222886a8f6aebd484d2..a4005e3fd4663365a4da3af00ec60f7b7114b504 100644 --- a/Utils/otbDEMConvert.cxx +++ b/Utils/otbDEMConvert.cxx @@ -213,10 +213,10 @@ int DEMConvert::Execute(otb::ApplicationOptionsResult* parseResult) { writer->execute(); } - catch(std::exception& e) + catch(std::exception& err) { - itkExceptionMacro("Error occurs writing the ouput image..."); - return EXIT_FAILURE; + itkExceptionMacro("Error occurs writing the ouput image: " << err); + return EXIT_FAILURE; } }