diff --git a/bin/test-storybook.js b/bin/test-storybook.js index 0ced7405..8337577b 100755 --- a/bin/test-storybook.js +++ b/bin/test-storybook.js @@ -114,7 +114,12 @@ function ejectConfiguration () { const fileAlreadyExists = fs.existsSync(destination) if(fileAlreadyExists) { - throw new Error('Found existing file. Please delete it and rerun this command') + throw new Error(dedent`Found existing file at: + + ${destination} + + Please delete it and rerun this command. + \n`) } fs.copyFileSync(origin, destination)