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 b679912 commit 20851eaCopy full SHA for 20851ea
bin/theme-upload.js
@@ -4,8 +4,14 @@ const brandId = process.env.BRAND_ID;
4
const { execSync } = require("child_process");
5
6
function zcli(command) {
7
- const data = execSync(`yarn zcli ${command} --json`);
8
- return JSON.parse(data.toString());
+ try {
+ const data = execSync(`yarn zcli ${command} --json`);
9
+ return JSON.parse(data.toString());
10
+ } catch (e) {
11
+ console.error(e.message);
12
+ console.error(e.stdout.toString());
13
+ process.exit(1);
14
+ }
15
}
16
17
const { themeId } = zcli(`themes:import --brandId=${brandId}`);
0 commit comments