Skip to content

Commit

Permalink
docs: update error message for no metadata warning
Browse files Browse the repository at this point in the history
  • Loading branch information
NoNameProvided committed Dec 2, 2022
1 parent e252183 commit f6f1bdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/validation/ValidationExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export class ValidationExecutor {
*/
if (!this.metadataStorage.hasValidationMetaData && this.validatorOptions?.enableDebugMessages === true) {
console.warn(
`No metadata found. There is more than once class-validator version installed probably. You need to flatten your dependencies.`
`No validation metadata found. No validation will be performed. There are multiple possible reasons:\n` +
` - There may be multiple class-validator versions installed. You will need to flatten your dependencies to fix the issue.\n` +
` - This validation runs before any file with validation decorator was parsed by NodeJS.`
);
}

Expand Down

0 comments on commit f6f1bdf

Please sign in to comment.