Skip to content

Commit

Permalink
feat: 馃幐 Add url from error params to widget.error
Browse files Browse the repository at this point in the history
When we need add url for redirect to error
  • Loading branch information
lastuvka authored and mjancarik committed Oct 24, 2023
1 parent ffcdb4d commit ff05048
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-error/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ async function updateHook(widget, originalUpdate, ...rest) {
export function setErrorInfo(widget, error) {
widget.error.status = error.status;
widget.error.message = error.message;
widget.error.url = error.params?.url;

if (ENV === DEV) {
widget.error.stack = error.stack;
Expand Down

0 comments on commit ff05048

Please sign in to comment.