Include original error message in error message box - #579
Merged
Conversation
fluiddot
commented
Oct 2, 2024
Comment on lines
-104
to
-105
| } catch ( error ) { | ||
| throw new Error( 'Failed to delete local files' ); |
Contributor
Author
There was a problem hiding this comment.
We let the exception bubble up so we can display the original error message.
sejas
approved these changes
Oct 4, 2024
sejas
left a comment
Member
There was a problem hiding this comment.
Love it!
Thanks for adding the context, this will help to receive better reports from users, and it will help them to possibly fix their issues, or at least understanding the root cause of them.
I've applied the diff and I've tested all the use cases except update and delete a demo site.
I like how the OK button array is not required anymore. Well done!
FkG2Ly.mp4
wojtekn
approved these changes
Oct 4, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to 9309-gh-Automattic/dotcom-forge.
Proposed Changes
Testing Instructions
Preparation:
Create site
ipc-handlers.tsfile related to creating a site.Start site
ipc-handlers.tsfile related to starting a site.Delete site
ipc-handlers.tsfile related to deleting a site.Opening link from Assistant
ipc-handlers.tsfile related to opening an URL.How can I access the plugins list?).Add demo site
ipc-handlers.tsfile related to archiving a site.Update demo site
ipc-handlers.tsfile related to archiving a site.Import site
ipc-handlers.tsfile related to importing a site.Export site
ipc-handlers.tsfile related to exporting a site.Pre-merge Checklist