Skip to content

Commit b6725fe

Browse files
committed
Print error message from response
1 parent b0d2825 commit b6725fe

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)