We want to handle autoUpdate errors (in particular error about no network connection). If we add a listener to an error event electron no longer displays the native alert with the error. Now we can just log it and restart the update schedule.
- rCOMMe37c0d6f5d79: [desktop] Handle autoUpdate errors
Run the app, turn of internet connection. Check if the error is displayed and the app continues to check for updates.
|29 ↗||(On Diff #23607)|
Docs says: "Emitted when there is an error while updating."
I am not sure what exactly can cause an error but are we confident that this callback will be called only after checkForUpdates() failure and we that don't need to clear timeout?
I am afraid of causing an update twice when an error was thrown from a different reason than checkForUpdates failure.