Skip to content

Commit

Permalink
fix: in percy-storybook error is thrown via reject under value attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshah98 committed Oct 31, 2023
1 parent 4aaa7b2 commit fc5f597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class Page {
});

if (exceptionDetails) {
throw exceptionDetails.exception.description;
throw exceptionDetails.exception.description || exceptionDetails.exception.value;
} else {
return result.value;
}
Expand Down

0 comments on commit fc5f597

Please sign in to comment.