File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 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 {
426426
427427 if ( this . _options . logErrors ) {
428428 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 ) ;
430430 }
431431 // eslint-disable-next-line no-console
432432 console . error ( error ) ;
Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ class VueHelper {
396396
397397 if ( this . _options . logErrors ) {
398398 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 ) ;
400400 }
401401 // eslint-disable-next-line no-console
402402 console . error ( error ) ;
You can’t perform that action at this time.
0 commit comments