From dd64f96ebdc1793c8351028a55d6e218617a4f70 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Sun, 8 Mar 2015 11:08:39 +0100 Subject: [PATCH] add a note when a command failed to execute. This will give user few step to do before reporting an issue we cant help with it. Closes #177. --- buildozer/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/buildozer/__init__.py b/buildozer/__init__.py index 86dc5e7..d20ccca 100644 --- a/buildozer/__init__.py +++ b/buildozer/__init__.py @@ -317,6 +317,16 @@ class Buildozer(object): process.communicate() if process.returncode != 0 and break_on_error: self.error('Command failed: {0}'.format(command)) + self.error('') + self.error('Buildozer failed to execute the last command') + if self.log_level <= 1: + self.error('If the error is not obvious, please raise the log_level to 2') + self.error('and retry the latest command.') + else: + self.error('The error might be hidden in the log above this error') + self.error('Please read the full log, and search for it before') + self.error('raising an issue with buildozer itself.') + self.error('In case of a bug report, please add a full log with log_level = 2') raise BuildozerCommandException() if ret_stdout: ret_stdout = b''.join(ret_stdout)