Skip to content

Commit

Permalink
Merge pull request #16 from codesandbox/draft/shy-meadow
Browse files Browse the repository at this point in the history
fix: make general error message clearer
  • Loading branch information
danilowoz authored May 27, 2024
2 parents 797869f + 953c3cc commit 54a5817
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codesandbox/storybook-addon",
"version": "0.1.4",
"version": "0.1.5",
"description": "CSB",
"keywords": [
"storybook-addons"
Expand Down
5 changes: 4 additions & 1 deletion src/Tool.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,15 @@ export const CodeSandboxTool = memo(function MyAddonSelector({
addNotification({
content: {
headline: "CodeSandbox: something went wrong",
subHeadline: error.message,
subHeadline:
"Make sure you have a valid API token, or check the console for more details.",
},
id: "csb-error",
link: "",
});

console.error(error.message);

throw error;
}
}
Expand Down

0 comments on commit 54a5817

Please sign in to comment.