File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ ERROR_MESSAGES[4] = `should be full path to file or function returning full path
94
94
95
95
var LOADER_OPTIONS_SCHEMA = {
96
96
title : LOADER_NAME ,
97
- description : `${ LOADER_NAME } webpack options schema ` ,
97
+ description : `${ LOADER_NAME } Webpack JSON Schema options ` ,
98
98
type : 'object' ,
99
99
properties : {
100
100
condition : {
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ function _default(source) {
163
163
progress ( `Validate options` ) ;
164
164
( 0 , _schemaUtils . default ) ( _constants . LOADER_OPTIONS_SCHEMA , options ) ;
165
165
} catch ( e ) {
166
- this . emitError ( e ) ;
166
+ throw prepareErrorSchemaMessage ( e ) ;
167
167
}
168
168
/**
169
169
* Checking using with other loaders
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export default function(source) {
130
130
progress ( `Validate options` ) ;
131
131
validateOptions ( LOADER_OPTIONS_SCHEMA , options ) ;
132
132
} catch ( e ) {
133
- this . emitError ( e ) ;
133
+ throw prepareErrorSchemaMessage ( e ) ;
134
134
}
135
135
136
136
/**
You can’t perform that action at this time.
0 commit comments