File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ module.exports = {
6
6
browser . getLog ( 'browser' , ( logEntries ) => {
7
7
const errors = logEntries . filter ( ( entry ) => entry . level . name === 'SEVERE' ) ;
8
8
if ( errors . length > 0 ) {
9
+ console . log ( '\nBROWSER CONSOLE ERRORS:' ) ;
9
10
console . error ( errors ) ;
11
+ console . log ( '\n' ) ;
10
12
}
11
13
browser . assert . equal ( errors . length , 0 , 'No console errors found' ) ;
12
14
} ) ,
Original file line number Diff line number Diff line change @@ -34,7 +34,11 @@ export class LanguageService {
34
34
if ( lng && Object . values ( LanguageCode ) . includes ( lng ) ) {
35
35
this . _setFn ( lng ) ;
36
36
} else {
37
- console . error ( 'Invalid language code' , lng ) ;
37
+ if ( lng ) {
38
+ console . error ( 'Invalid language code' , lng ) ;
39
+ } else {
40
+ console . warn ( 'No language code provided' ) ;
41
+ }
38
42
this . setFromBrowserLngIfAutoSwitchLng ( ) ;
39
43
}
40
44
}
You can’t perform that action at this time.
0 commit comments