diff --git a/test/test.py b/test/test.py
index 154fda70ca2debc6831a974125e1fdda9743af2f..523bc6ce2cddd0247ce0d4b559ca2bf0b2b1763d 100644
--- a/test/test.py
+++ b/test/test.py
@@ -170,7 +170,7 @@ class Shell:
         #TODO: should I check if process is still running at that point (stream closed but process alive ?)
 
         if self.shell_process.returncode != 0:
-            raise AssertionError('Shell process exited with an error code ({})'.format(self.shell_process.returncode))
+            raise AssertionError('Shell process exited with an error code ({}). Standard error contains: "{}"'.format(self.shell_process.returncode, self.read_stderr()))
 
 
     def read_stdout(self):