Skip to content

Commit

Permalink
Strip whitespace from response error messages (#6449)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia authored Nov 15, 2022
1 parent c4837e1 commit 8b7925a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ public T getPayload() {
}

public String getErrorMessage() {
return errorMessage;
if (errorMessage != null) {
return errorMessage.strip();
}
return null;
}

public boolean isSuccess() {
Expand Down

0 comments on commit 8b7925a

Please sign in to comment.