File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ function enableDebug () {
30
30
* @param {String } msg
31
31
*/
32
32
33
- exports . warn = function ( msg ) {
33
+ exports . warn = function ( msg , e ) {
34
34
if ( hasConsole && ( ! config . silent || config . debug ) ) {
35
35
console . warn ( '[Vue warn]: ' + msg )
36
36
/* istanbul ignore if */
37
37
if ( config . debug ) {
38
38
/* jshint debug: true */
39
- console . warn ( ( new Error ( ) ) . stack )
39
+ console . warn ( ( e || new Error ( ) ) . stack )
40
40
}
41
41
}
42
42
}
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ p.get = function () {
80
80
if ( config . warnExpressionErrors ) {
81
81
_ . warn (
82
82
'Error when evaluating expression "' +
83
- this . expression + '":\n ' + e
83
+ this . expression + '"' , e
84
84
)
85
85
}
86
86
}
@@ -117,7 +117,7 @@ p.set = function (value) {
117
117
if ( config . warnExpressionErrors ) {
118
118
_ . warn (
119
119
'Error when evaluating setter "' +
120
- this . expression + '":\n ' + e
120
+ this . expression + '"' , e
121
121
)
122
122
}
123
123
}
You can’t perform that action at this time.
0 commit comments