Skip to content

Commit

Permalink
[HWKMETRICS-185] Fix rebase error due to file moving to another locat…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
Stefan Negrea committed Aug 13, 2015
1 parent 8fbfa8e commit 6e27222
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,9 @@ public static Response emptyPayload() {
public static Response badRequest(ApiError error) {
return Response.status(Response.Status.BAD_REQUEST).entity(error).build();
}

public static Response badRequest(Throwable t) {
ApiError error = new ApiError(t.getLocalizedMessage());
return badRequest(error);
}
}

0 comments on commit 6e27222

Please sign in to comment.