extensions
extensions copied to clipboard
Pass Through Original Error Text
Extension
https://www.raycast.com/Codely/google-chrome
Raycast Version
any
macOS Version
any
Description
Creating this as a separate issue to avoid blocking #16287
useBookmarkSearch and useHistorySearch throw out upstream errors (useBookmarkSearch), or don't handle them (useHistorySearch). That prevents messages which can be useful to users for debugging their issues, resulting in additional bug reports. It also requires the hooks to know about all upstream errors, which adds additional complexity and coupling.
The goal of this issue is to pass through original messages wherever they're created, logging them in the hook, along with cleanup of unused constants and such. Making error handling consistent for both cases would be helpful.
Error handling guidelines at https://developers.raycast.com/information/best-practices#handle-errors
Example
A missing profile when searching bookmarks will currently show src/constants.ts:
# 🚨Error: Something happened while trying to run your command
Instead of the more useful error text from src/util/index.ts:
`The profile path ${resolvedProfilePath} does not exist. Please check your Chrome profile location by visiting chrome://version -> Profile Path. Then update it in Extension Settings -> Profile Path.`;
Thank you for opening this issue!
🔔 @rgomezcasas @bromanko @crisboarna @andreaselia @rtyke @karolre @Aiee @nagauta @tleo19 @Tarocch1 you might want to have a look.
💡 Author and Contributors commands
The author and contributors of Codely/google-chrome can trigger bot actions by commenting:
@raycastbot close this issueCloses the issue.@raycastbot close as not plannedCloses the issue as not planned.@raycastbot rename this issue to "Awesome new title"Renames the issue.@raycastbot reopen this issueReopens the issue.@raycastbot assign meAssigns yourself to the issue.@raycastbot good first issueAdds the "Good first issue" label to the issue.@raycastbot keep this issue openMake sure the issue won't go stale and will be kept open by the bot.
@raycastbot keep this issue open