CLI: A more human-friendly message for undetected project types

This commit is contained in:
hypnos 2017-09-09 04:24:32 +03:00
parent 5e788512c4
commit 227677c1fb

View File

@ -153,8 +153,13 @@ switch (projectType) {
break;
default:
paddedLog(`Unsupported Project type. (code: ${projectType})`);
paddedLog('Visit https://storybook.js.org for more information.');
paddedLog(`We couldn't detect your project type. (code: ${projectType})`);
paddedLog(
"Please make sure you are running the `getstorybook` command in your project's root directory."
);
paddedLog(
'You can also follow some of the slow start guides: https://storybook.js.org/basics/slow-start-guide/'
);
// Add a new line for the clear visibility.
logger.log();