From 804a6deb412e7f2a26a835c2242b3d7fe0a4ba7c Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Thu, 17 Feb 2022 09:08:31 +0100 Subject: [PATCH] fix: add file location to eject error message --- bin/test-storybook.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)