Skip to content

Commit 6600865

Browse files
committed
add information that it is about the user
1 parent 8167a47 commit 6600865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/javadiscord/javabot/api/routes/user_profile/UserProfileController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public ResponseEntity<UserProfileData> getUserProfile(
8888
try{
8989
user = jda.retrieveUserById(userId).complete();
9090
}catch (ErrorResponseException e) {
91-
throw new InvalidEntityIdException(User.class, e.getMeaning());
91+
throw new InvalidEntityIdException(User.class, "Cannot fetch user: " + e.getMeaning());
9292
}
9393
try (Connection con = dataSource.getConnection()) {
9494
// Check Cache

0 commit comments

Comments
 (0)