mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Report errors properly when using --stop
This commit is contained in:
parent
ecaf475fc8
commit
bdf24d1891
1 changed files with 3 additions and 3 deletions
|
|
@ -672,21 +672,21 @@ def main():
|
|||
logfile = open(os.path.join(log_dir, app['id'] + '.log'), 'a+')
|
||||
logfile.write(str(be))
|
||||
logfile.close()
|
||||
print "Could not build app %s due to BuildException: %s" % (app['id'], be)
|
||||
if options.stop:
|
||||
sys.exit(1)
|
||||
print "Could not build app %s due to BuildException: %s" % (app['id'], be)
|
||||
failed_apps[app['id']] = be
|
||||
wikilog = str(be)
|
||||
except VCSException as vcse:
|
||||
print "VCS error while building app %s: %s" % (app['id'], vcse)
|
||||
if options.stop:
|
||||
sys.exit(1)
|
||||
print "VCS error while building app %s: %s" % (app['id'], vcse)
|
||||
failed_apps[app['id']] = vcse
|
||||
wikilog = str(vcse)
|
||||
except Exception as e:
|
||||
print "Could not build app %s due to unknown error: %s" % (app['id'], traceback.format_exc())
|
||||
if options.stop:
|
||||
sys.exit(1)
|
||||
print "Could not build app %s due to unknown error: %s" % (app['id'], traceback.format_exc())
|
||||
failed_apps[app['id']] = e
|
||||
wikilog = str(e)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue