Skip to content

Commit e611aa6

Browse files
committed
1.3.0 Fix prepareErrorSchemaMessage
1 parent 5e153b5 commit e611aa6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ ERROR_MESSAGES[4] = `should be full path to file or function returning full path
9494

9595
var LOADER_OPTIONS_SCHEMA = {
9696
title: LOADER_NAME,
97-
description: `${LOADER_NAME} webpack options schema`,
97+
description: `${LOADER_NAME} Webpack JSON Schema options`,
9898
type: 'object',
9999
properties: {
100100
condition: {

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function _default(source) {
163163
progress(`Validate options`);
164164
(0, _schemaUtils.default)(_constants.LOADER_OPTIONS_SCHEMA, options);
165165
} catch (e) {
166-
this.emitError(e);
166+
throw prepareErrorSchemaMessage(e);
167167
}
168168
/**
169169
* Checking using with other loaders

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default function(source) {
130130
progress(`Validate options`);
131131
validateOptions(LOADER_OPTIONS_SCHEMA, options);
132132
} catch (e) {
133-
this.emitError(e);
133+
throw prepareErrorSchemaMessage(e);
134134
}
135135

136136
/**

0 commit comments

Comments
 (0)