We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b803694 commit bb97581Copy full SHA for bb97581
1 file changed
kafka_sbuild/entrypoint.py
@@ -182,6 +182,15 @@ def _run_sbuild(self):
182
# Run sbuild
183
cmd = sp.Popen(sbuild_options, stdout=sp.PIPE, stderr=sp.STDOUT)
184
stdout, _ = cmd.communicate()
185
+ if cmd.returncode == 1:
186
+ message = 'Sbuild failed:\n{}'.format(stdout.decode(encoding='utf-8'))
187
+ print("{}: {}".format(
188
+ str(datetime.datetime.now()),
189
+ message)
190
+ )
191
+ self.error_msg['phase'] = 'run_sbuild'
192
+ self.error_msg['message'] = message
193
+ raise AnalyserError(message)
194
# print("sbuild stdout\n" + stdout.decode(encoding='utf-8'))
195
os.chdir(old_cwd)
196
0 commit comments