Skip to content

Commit 817f6c5

Browse files
committed
Leverage ajv error messaging
1 parent 74d0e3a commit 817f6c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema/validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ module.exports = function validate(data) {
77
var valid = validSchema(data);
88

99
if(!valid) {
10-
throw new Error("Your ExtractTextPlugin config is not correct. Please double check.");
10+
throw new Error(ajv.errorsText());
1111
}
1212
}

0 commit comments

Comments
 (0)