Skip to content

Commit

Permalink
Merge pull request #1751 from Accenture/task/1750-improve-debug-loggi…
Browse files Browse the repository at this point in the history
…ng-for-validation-rule-errors

task/1750 improve debug logging for custom validation rules
  • Loading branch information
JoernBerkefeld authored Sep 30, 2024
2 parents 6fbdfde + 44be3b9 commit 31ea3ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion @types/lib/util/validations.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions lib/util/validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} */
Expand Down

0 comments on commit 31ea3ed

Please sign in to comment.