diff --git a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
index 3fb816d1341c6268a959a299b77de1bedd2c6168..e408cdca80d68f958e35cea5ecbbbcec1986e06f 100644
--- a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
+++ b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
@@ -159,13 +159,13 @@ bool CommandLineLauncher::ExecuteAndWriteOutput()
   // If testenv is used, do not catch exceptions
   if (m_Parser->IsAttributExists("-testenv", m_VExpression) == true)
     {
-    ExecuteAndWriteOutputNoCatch();
+    return ExecuteAndWriteOutputNoCatch();
     }
   else
     {
     try
       {
-      ExecuteAndWriteOutputNoCatch();
+      return ExecuteAndWriteOutputNoCatch();
       }
     catch(otb::ApplicationException& err)
       {