Skip to content

Commit

Permalink
fix: Update exception message for get representation content
Browse files Browse the repository at this point in the history
  • Loading branch information
congminh1254 committed Mar 25, 2024
1 parent 8e0c63f commit d7c55d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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,7 @@ 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 d7c55d1

Please sign in to comment.