File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -161,18 +161,18 @@ function validateConfigBrowsers(browsers) {
161161
162162function validateConfigResolutions ( resolutions ) {
163163 if ( ! Array . isArray ( resolutions ) ) {
164- throw new ValidationError ( 'invalid resolutions .' ) ;
164+ throw new ValidationError ( 'Invalid viewports config. Please add atleast one viewport .' ) ;
165165 }
166166 if ( resolutions . length == 0 ) {
167- throw new ValidationError ( 'empty resolutions list in config.' ) ;
167+ throw new ValidationError ( 'Empty viewports list in config.' ) ;
168168 }
169169 if ( resolutions . length > 5 ) {
170170 throw new ValidationError ( `max resolutions: ${ MAX_RESOLUTIONS } ` ) ;
171171 }
172172 let res = [ ] ;
173173 resolutions . forEach ( element => {
174174 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 .' ) ;
176176 }
177177 let width = element [ 0 ] ;
178178 let height = element [ 1 ] ;
You can’t perform that action at this time.
0 commit comments