mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
print response code in Sublime Console if api request failed
This commit is contained in:
@@ -162,9 +162,11 @@ class SendActionThread(threading.Thread):
|
|||||||
if self.debug:
|
if self.debug:
|
||||||
cmd.append('--verbose')
|
cmd.append('--verbose')
|
||||||
if HAS_SSL:
|
if HAS_SSL:
|
||||||
wakatime.main(cmd)
|
|
||||||
if self.debug:
|
if self.debug:
|
||||||
print(cmd)
|
print(cmd)
|
||||||
|
code = wakatime.main(cmd)
|
||||||
|
if code != 0:
|
||||||
|
print('Error: Response code %d from wakatime package' % code)
|
||||||
else:
|
else:
|
||||||
cmd.insert(0, python_binary())
|
cmd.insert(0, python_binary())
|
||||||
if self.debug:
|
if self.debug:
|
||||||
|
|||||||
Reference in New Issue
Block a user