From fc5f597e50af17770b5162938aae7a965d8ced20 Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Tue, 31 Oct 2023 21:01:56 +0530 Subject: [PATCH] fix: in percy-storybook error is thrown via reject under value attribute --- packages/core/src/page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/page.js b/packages/core/src/page.js index fbed6ea83..e00783433 100644 --- a/packages/core/src/page.js +++ b/packages/core/src/page.js @@ -119,7 +119,7 @@ export class Page { }); if (exceptionDetails) { - throw exceptionDetails.exception.description; + throw exceptionDetails.exception.description || exceptionDetails.exception.value; } else { return result.value; }