From 2a64fa49e672c32b4097c1a81f568433f619e336 Mon Sep 17 00:00:00 2001 From: Pavel Vojtechovsky Date: Fri, 17 Mar 2023 16:13:28 +0100 Subject: [PATCH] log rollup error.message --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index ec8e396..cf7a3e4 100644 --- a/lib/index.js +++ b/lib/index.js @@ -104,7 +104,7 @@ function createPreprocessor(preconfig, config, emitter, logger) { log.warn('Nothing was processed.') done(null, original) } catch (error) { - log.error('Failed to process ./%s\n\n%s\n', location, error.stack) + log.error('Failed to process ./%s\n%s\n%s\n', location, error.message || "\n", error.stack) done(error, null) } }