Skip to content

Commit

Permalink
Added clarifying error logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaume Florez committed Sep 15, 2016
1 parent bfef1ba commit b208a48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hookshub/hooks/gitlab/merge_request_lektor.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def arguments():
out, err = new_clone.communicate()

if new_clone.returncode != 0:
sys.stderr.write('| Failed to get repository |')
print(output)
exit(-1)

Expand Down Expand Up @@ -231,6 +232,9 @@ def arguments():
except requests.RequestException as err:
sys.stderr.write('Failed to send comment to merge request -'
' REQUEST [{}]'.format(err))
except Exception as err:
sys.stderr.write('Failed to send comment to merge request -'
' INTERNAL SERVER ERROR [{}]'.format(err))

if virtenv:
output += 'Deactivate virtualenv ...'
Expand Down

0 comments on commit b208a48

Please sign in to comment.