Skip to content

Commit

Permalink
fix: Update exception message for get representation content (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
congminh1254 committed Mar 25, 2024
1 parent 8e0c63f commit a608f9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/box/sdk/BoxFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,8 @@ public void getRepresentationContent(String representationHint, String assetPath

List<Representation> reps = this.getInfoWithRepresentations(representationHint).getRepresentations();
if (reps.size() < 1) {
throw new BoxAPIException("No matching representations found");
throw new BoxAPIException("No matching representations found for requested '" + representationHint
+ "' hint");
}
Representation representation = reps.get(0);
String repState = representation.getStatus().getState();
Expand Down

0 comments on commit a608f9a

Please sign in to comment.