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
Desktop: Fixes #5875: Show error on sync if S3 region is not set #5923
Conversation
It was only tested on Linux desktop app. I'm not sure if this affects other platforms. I don't have other platforms for testing. |
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.
My comments inline
Co-authored-by: Helmut K. C. Tessarek <tessarek@evermeet.cx>
Co-authored-by: Helmut K. C. Tessarek <tessarek@evermeet.cx>
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.
That's great, thanks for the fix @shinglyu. I've just added a comment below.
reg.logger().error(error); | ||
utils.store.dispatch({ | ||
type: 'SYNC_REPORT_UPDATE', | ||
report: { errors: [error] }, |
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.
As it's going to affect all sync targets, and some might output not so useful error messages, please could you add more info? Just error.message = "Could not initialise synchroniser: " + error.message
should do.
And that should be done in side-menu-shared too.
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.
"Could not initialise synchroniser" please. We use British English by default and "acquire synchronizer" doesn't mean much I think.
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.
@laurent22 Thank you for the comment. All the logs are now in British English.
Looks good now, thanks for the fix @shinglyu! |
Shows an error message when syncing if the S3 region is not set
Also shows a message if you try to check sync config in settings:
I also turn a few error log from
info
toerror
.This should fix #5875