-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved error message when downloading a file fails #9826 #9838
Conversation
@yerraga Thank you for the contribution. Can you please fix checkstyle? See https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-13-code-style.html for details. Please also use I think, the whole thing should be tested. Can you dive into WireMock to setup mocking the remote servers - so that each exception path in LinkedFileViewModel is tested? https://wiremock.org/docs/junit-jupiter/ |
To ease organizational workflows I have linked the pull-request to the issue with syntax as described in https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
|
} else if (ex instanceof FetcherServerException) { | ||
FetcherServerException serverException = (FetcherServerException) ex; | ||
int statusCode = serverException.getStatusCode(); | ||
dialogService.showErrorDialogAndWait(Localization.lang("Error downloading from URL"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second part is also shown to the user
. Thus, that needs to be localized too. It is OK for me to include the server error here.
What is the status here? Are you planning to fix the compile errors to get it working? |
Closing this issue due to inactivity 💤 |
Fixes #9826
Compulsory checks