From 44be3b934c9b8ce41ed8d7146d93340e980000f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Berkefeld?= Date: Mon, 30 Sep 2024 13:12:45 +0200 Subject: [PATCH] #1750: improve debug logging for custom validation rules --- @types/lib/util/validations.d.ts.map | 2 +- lib/util/validations.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/@types/lib/util/validations.d.ts.map b/@types/lib/util/validations.d.ts.map index 5325c65b4..1f6f8618d 100644 --- a/@types/lib/util/validations.d.ts.map +++ b/@types/lib/util/validations.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"validations.d.ts","sourceRoot":"","sources":["../../../lib/util/validations.js"],"names":[],"mappings":"AAiBA;;;;;;GAMG;AACH,+CALW,GAAG,QACH,GAAG,aAEH,MAAM,GADJ,OAAO,CAAE,GAAG,CAAC,CAmDzB;iCAnEY,OAAO,wBAAwB,EAAE,kBAAkB;iCACnD,OAAO,wBAAwB,EAAE,kBAAkB"} \ No newline at end of file +{"version":3,"file":"validations.d.ts","sourceRoot":"","sources":["../../../lib/util/validations.js"],"names":[],"mappings":"AAiBA;;;;;;GAMG;AACH,+CALW,GAAG,QACH,GAAG,aAEH,MAAM,GADJ,OAAO,CAAE,GAAG,CAAC,CAoDzB;iCApEY,OAAO,wBAAwB,EAAE,kBAAkB;iCACnD,OAAO,wBAAwB,EAAE,kBAAkB"} \ No newline at end of file diff --git a/lib/util/validations.js b/lib/util/validations.js index c47dc0eee..38e6a28d5 100644 --- a/lib/util/validations.js +++ b/lib/util/validations.js @@ -30,8 +30,9 @@ export default async function validation(definition, item, targetDir) { : {}; } } catch (ex) { - Util.logger.error( - 'Could not load custom validation rules from .mcdev-validations.js: ' + ex.message + Util.logger.errorStack( + ex, + 'Could not load custom validation rules from .mcdev-validations.js' ); } /** @type {validationRuleList} */