Skip to content

Commit

Permalink
More information if new issue fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Holmes committed Dec 29, 2015
1 parent 6de08ca commit 5a8f66d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion allura_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def create_issue(subject, description):
print 'Ticket created at: %s' % allura_result.geturl().replace("/rest","")
else:
print 'Error code %s' % (allura_result.getcode())
print 'Failed URL was %s' % allura_api + "/new"
print 'Failed data was %s' % data_encoded
sys.exit(1)
issue_id = get_issue_number(allura_result.geturl())

Expand Down Expand Up @@ -105,7 +107,7 @@ def add_api_string(allura_server):
p_pos = allura_server.find('/p/')
if p_pos < 1:
print 'Allura server has unxepected format: expect it to contain /p/ in the URL'
print 'Please run gir cl config'
print 'Please run git cl config'
sys.exit(1)
api_server = allura_server[0:p_pos]
api_server += '/rest'
Expand Down

0 comments on commit 5a8f66d

Please sign in to comment.