Skip to content

Commit

Permalink
Log response string to assist user (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen authored and timja committed Jan 23, 2019
1 parent 928b23e commit 6be0492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ protected SlackResponse run() throws Exception {
org.json.JSONObject result = new org.json.JSONObject(responseString);
response = new SlackResponse(result);
} catch (org.json.JSONException ex) {
listener.error(Messages.FailedToParseSlackResponse());
listener.error(Messages.FailedToParseSlackResponse(responseString));
if (step.failOnError) {
throw ex;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ NotificationFailed=Slack notification failed. See Jenkins logs for details.
NotificationFailedWithException=Slack notification failed with exception: {0}
SlackSendStepValues=Slack Send Pipeline step running, values are - baseUrl: {0}, teamDomain: {1}, channel: {2}, color: {3}, botUser: {4}, tokenCredentialId: {5}
SlackSendStepValuesEmptyMessage=<empty>
FailedToParseSlackResponse=Could not parse response from slack, potentially because of invalid configuration (botUser: true and baseUrl set)
FailedToParseSlackResponse=Could not parse response from slack, potentially because of invalid configuration (botUser: true and baseUrl set), response: {0}

0 comments on commit 6be0492

Please sign in to comment.