Improve error logging

This commit is contained in:
Michael Shilman 2019-04-24 18:24:05 +08:00
parent 1c49d6558c
commit e6fb6fd822

View File

@ -196,7 +196,7 @@ const initStoriesApi = ({
if (parent === id) {
throw new Error(
`
Invalid kind with id === parentId: '${id}'
Invalid part '${name}', leading to id === parentId ('${id}'), inside kind '${kind}'
Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybooks/storybook/issues/6128
`.trim()