print the peertube response.json when in error

This commit is contained in:
Zykino 2018-09-09 21:19:34 +02:00
parent 844173f326
commit 34103c49f2

View file

@ -138,6 +138,7 @@ def upload_video(oauth, secret, options):
else:
logging.error(('Peertube: The upload failed with an unexpected response: '
'%s') % response)
print(response.json())
exit(1)