Skip to content

Commit 03cc3c7

Browse files
authored
Merge pull request #10 from pinanks/DOT-997
2 parents b0d2825 + b6725fe commit 03cc3c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

commands/utils/dom.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ async function sendDoM(storybookUrl, stories, storybookConfig, options) {
7777
await shortPolling(response.data.buildId, 0, options);
7878
})
7979
.catch(function (error) {
80-
console.log('[smartui] Build failed: Error: ', error.message);
80+
if (error.response) {
81+
console.log('[smartui] Build failed: Error: ', error.response.data.message);
82+
} else {
83+
console.log('[smartui] Build failed: Error: ', error.message);
84+
}
8185
});
8286

8387
fs.rm('doms', {recursive: true}, (err) => {

0 commit comments

Comments
 (0)