From 89e95b3f143682ed9a006991bacf45c9dcba4818 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:43:05 +0800 Subject: remove node_modules --- node_modules/schema-utils/src/ValidationError.js | 25 ------------------------ 1 file changed, 25 deletions(-) delete mode 100644 node_modules/schema-utils/src/ValidationError.js (limited to 'node_modules/schema-utils/src/ValidationError.js') diff --git a/node_modules/schema-utils/src/ValidationError.js b/node_modules/schema-utils/src/ValidationError.js deleted file mode 100644 index 21264b5c..00000000 --- a/node_modules/schema-utils/src/ValidationError.js +++ /dev/null @@ -1,25 +0,0 @@ -/* eslint-disable - strict -*/ - -'use strict'; - -class ValidationError extends Error { - constructor(errors, name) { - super(); - - this.name = 'ValidationError'; - - this.message = `${name || ''} Invalid Options\n\n`; - - errors.forEach((err) => { - this.message += `options${err.dataPath} ${err.message}\n`; - }); - - this.errors = errors; - - Error.captureStackTrace(this, this.constructor); - } -} - -module.exports = ValidationError; -- cgit v1.2.3