Skip to content

Commit

Permalink
Print errors
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jan 25, 2023
1 parent 0b319fb commit 9144d42
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,12 @@ export default (opts = {}) => {
await buildLocale(opts);
await buildDeclaration(opts);

errors ?
printError('Error during building') :
if (errors) {
printError(`Error during building`);
console.error(err);
} else {
printRow('Building completed successfully!');
}
});
};

Expand Down

0 comments on commit 9144d42

Please sign in to comment.