Skip to content

Commit

Permalink
fix: write actual error message
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jan 30, 2021
1 parent 429c3cc commit fafc6fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/vue3/src/client/preview/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export const storybookApp = createApp({

setup() {
return () => {
if (!activeStoryComponent.value) throw new Error('TODO: No Vue3 story');
if (!activeStoryComponent.value)
throw new Error('No Vue 3 Story available. Was it set correctly?');
return h(activeStoryComponent.value, activeProps.value);
};
},
Expand Down

0 comments on commit fafc6fc

Please sign in to comment.