We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a4d090 commit a7d90a7Copy full SHA for a7d90a7
index.js
@@ -41,8 +41,13 @@ program.command('storybook')
41
console.log('SmartUI Storybook CLI v' + version);
42
await checkUpdate(version, options);
43
console.log('\n');
44
- if (options.buildName === '') {
45
- console.log(`Error: The '--buildName' option cannot be an empty string.`);
+ // Check if buildName is undefined or empty string
+ if (options.buildName === undefined || options.buildName === '') {
46
+ const error = {
47
+ "error": "MISSING_BUILD_NAME",
48
+ "message": "The --buildName flag requires a value."
49
+ };
50
+ console.log(JSON.stringify(error, null, 2));
51
process.exit(1);
52
}
53
if (options.config) {
0 commit comments