mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 07:22:29 +03:00
If given --verbose, don't print the whole error log again
This commit is contained in:
parent
b23b560c72
commit
29ab3cf64d
1 changed files with 3 additions and 1 deletions
|
@ -944,7 +944,9 @@ 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))
|
||||
reason = str(be).split('\n',1)[0] if options.verbose else str(be)
|
||||
print("Could not build app %s due to BuildException: %s" % (
|
||||
app['id'], reason))
|
||||
if options.stop:
|
||||
sys.exit(1)
|
||||
failed_apps[app['id']] = be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue