Skip to content

Commit 9144d42

Browse files
committed
Print errors
1 parent 0b319fb commit 9144d42

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/build.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,12 @@ export default (opts = {}) => {
109109
await buildLocale(opts);
110110
await buildDeclaration(opts);
111111

112-
errors ?
113-
printError('Error during building') :
112+
if (errors) {
113+
printError(`Error during building`);
114+
console.error(err);
115+
} else {
114116
printRow('Building completed successfully!');
117+
}
115118
});
116119
};
117120

0 commit comments

Comments
 (0)