File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ export class Vue implements Integration {
426
426
427
427
if ( this . _options . logErrors ) {
428
428
if ( this . _options . Vue . util ) {
429
- this . _options . Vue . util . warn ( `Error in ${ info } : "${ error . toString ( ) } "` , vm ) ;
429
+ this . _options . Vue . util . warn ( `Error in ${ info } : "${ error && error . toString ( ) } "` , vm ) ;
430
430
}
431
431
// eslint-disable-next-line no-console
432
432
console . error ( error ) ;
Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ class VueHelper {
396
396
397
397
if ( this . _options . logErrors ) {
398
398
if ( this . _options . Vue . util ) {
399
- this . _options . Vue . util . warn ( `Error in ${ info } : "${ error . toString ( ) } "` , vm ) ;
399
+ this . _options . Vue . util . warn ( `Error in ${ info } : "${ error && error . toString ( ) } "` , vm ) ;
400
400
}
401
401
// eslint-disable-next-line no-console
402
402
console . error ( error ) ;
You can’t perform that action at this time.
0 commit comments