mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
Fix JSON babel config error reporting (#7104)
Fix JSON babel config error reporting
This commit is contained in:
commit
6389e30fce
@ -41,7 +41,7 @@ function loadFromPath(babelConfigPath) {
|
||||
We tried both loading as JS & JSON, neither worked.
|
||||
Maybe there's a syntax error in the file?`);
|
||||
logger.error(`=> From JS loading we got: ${error.js.message}`);
|
||||
logger.error(`=> From JSON loading we got: ${error.js.message}`);
|
||||
logger.error(`=> From JSON loading we got: ${error.json && error.json.message}`);
|
||||
|
||||
throw error.js;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user