Skip to content

#11 enhancement: improve file-manager-client error messages for invalid token#19

Open
Azher2Ali wants to merge 2 commits into
developfrom
fix/improve-file-manager-error-message
Open

#11 enhancement: improve file-manager-client error messages for invalid token#19
Azher2Ali wants to merge 2 commits into
developfrom
fix/improve-file-manager-error-message

Conversation

@Azher2Ali

@Azher2Ali Azher2Ali commented Sep 24, 2025

Copy link
Copy Markdown

Summary

Improve error handling to provide a more informative message when an unauthorized token is used.

Issue related to - #11

Description
Previously, when the file-manager-client was run with an out-of-scope or invalid token, the server returned a NullPointerException with no meaningful message.
This occurred because the exception handler attempted to report a null throwable, resulting in an unhelpful error response.
To fix this, the logic was updated to explicitly report a clear RuntimeException with the message "Unauthorized request" when the exception object (t) is null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant