mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-19 03:30:12 +02:00
Report errors properly when using --stop
This commit is contained in:
parent
ecaf475fc8
commit
bdf24d1891
@ -672,21 +672,21 @@ def main():
|
|||||||
logfile = open(os.path.join(log_dir, app['id'] + '.log'), 'a+')
|
logfile = open(os.path.join(log_dir, app['id'] + '.log'), 'a+')
|
||||||
logfile.write(str(be))
|
logfile.write(str(be))
|
||||||
logfile.close()
|
logfile.close()
|
||||||
|
print "Could not build app %s due to BuildException: %s" % (app['id'], be)
|
||||||
if options.stop:
|
if options.stop:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
print "Could not build app %s due to BuildException: %s" % (app['id'], be)
|
|
||||||
failed_apps[app['id']] = be
|
failed_apps[app['id']] = be
|
||||||
wikilog = str(be)
|
wikilog = str(be)
|
||||||
except VCSException as vcse:
|
except VCSException as vcse:
|
||||||
|
print "VCS error while building app %s: %s" % (app['id'], vcse)
|
||||||
if options.stop:
|
if options.stop:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
print "VCS error while building app %s: %s" % (app['id'], vcse)
|
|
||||||
failed_apps[app['id']] = vcse
|
failed_apps[app['id']] = vcse
|
||||||
wikilog = str(vcse)
|
wikilog = str(vcse)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
print "Could not build app %s due to unknown error: %s" % (app['id'], traceback.format_exc())
|
||||||
if options.stop:
|
if options.stop:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
print "Could not build app %s due to unknown error: %s" % (app['id'], traceback.format_exc())
|
|
||||||
failed_apps[app['id']] = e
|
failed_apps[app['id']] = e
|
||||||
wikilog = str(e)
|
wikilog = str(e)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user