File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -161,18 +161,18 @@ function validateConfigBrowsers(browsers) {
161
161
162
162
function validateConfigResolutions ( resolutions ) {
163
163
if ( ! Array . isArray ( resolutions ) ) {
164
- throw new ValidationError ( 'invalid resolutions .' ) ;
164
+ throw new ValidationError ( 'Invalid viewports config. Please add atleast one viewport .' ) ;
165
165
}
166
166
if ( resolutions . length == 0 ) {
167
- throw new ValidationError ( 'empty resolutions list in config.' ) ;
167
+ throw new ValidationError ( 'Empty viewports list in config.' ) ;
168
168
}
169
169
if ( resolutions . length > 5 ) {
170
170
throw new ValidationError ( `max resolutions: ${ MAX_RESOLUTIONS } ` ) ;
171
171
}
172
172
let res = [ ] ;
173
173
resolutions . forEach ( element => {
174
174
if ( ! Array . isArray ( element ) || element . length == 0 || element . length > 2 ) {
175
- throw new ValidationError ( 'invalid resolutions .' ) ;
175
+ throw new ValidationError ( 'Invalid elements in viewports config .' ) ;
176
176
}
177
177
let width = element [ 0 ] ;
178
178
let height = element [ 1 ] ;
You can’t perform that action at this time.
0 commit comments