RFC: Replace getErrorMessage
with {cause}
or better message extractor
#7218
Labels
getErrorMessage
with {cause}
or better message extractor
#7218
I think
getErrorMessage
should be used sparingly, we should review most usage in the extension. For example:This loses the original stack and possible nested
cause
s. Solution: Use{cause}
pixiebrix-extension/src/background/partnerIntegrations.ts
Lines 146 to 149 in 6c49ab5
cause
, which can add more information (Error saving spreadsheet. \n Google API request failed. \n No internet connection
)getErrorMessageWithCauses
DEV
builds<ErrorDetails error={error} stack/>
<ErrorDetails error={error} showDetailsButton/>
pixiebrix-extension/src/utils/enrichAxiosErrors.ts
Line 69 in 6c49ab5
pixiebrix-extension/src/pageEditor/tabs/effect/useDocumentPreviewRunBlock.ts
Lines 126 to 131 in 6c49ab5
Related
Previous work on this
The text was updated successfully, but these errors were encountered: