diff --git a/server.py b/server.py index 2dd06a7..0794134 100644 --- a/server.py +++ b/server.py @@ -47,7 +47,7 @@ def do_POST(self): self.send_response(500) # data = {'error': 'Error getting refresh token'} self.end_headers() - self.wfile.write(b'Error getting refresh token') + self.wfile.write(b'Error getting refresh token: ' + str(e).encode('utf-8')) return print("Downloading videos...") @@ -57,7 +57,7 @@ def do_POST(self): print("Error downloading videos:", e) self.send_response(500) self.end_headers() - self.wfile.write(b'Error downloading videos') + self.wfile.write(b'Error downloading videos: ' + str(e).encode('utf-8')) return exit(0)