Skip to content

Commit 1d0dd08

Browse files
authored
Improve error message
1 parent fb367f4 commit 1d0dd08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/chargebee/actions/create-subscription/create-subscription.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default {
7777
return response;
7878
} catch (error) {
7979
$.export("debug", error);
80-
throw new Error(`Error creating subscription: ${error.error_msg}`);
80+
throw new Error(`Error creating subscription: ${error.message}`);
8181
}
8282
},
8383
};

0 commit comments

Comments
 (0)