From 9144d423ba76d48d903d44dc4698a1f886481890 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Wed, 25 Jan 2023 12:48:50 +0400 Subject: [PATCH] Print errors --- src/build.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/build.js b/src/build.js index 27c8535..b37e2a2 100644 --- a/src/build.js +++ b/src/build.js @@ -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!'); + } }); };