Skip to content

Commit 192126f

Browse files
committed
improve v-on warning message
1 parent 1c87165 commit 192126f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/directives/on.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ module.exports = {
2222
update: function (handler) {
2323
if (typeof handler !== 'function') {
2424
process.env.NODE_ENV !== 'production' && _.warn(
25-
'Directive "v-on:' + this.expression + '" ' +
26-
'expects a function value.'
25+
'Directive v-on="' + this.arg + ': ' +
26+
this.expression + '" expects a function value, ' +
27+
'got ' + handler
2728
)
2829
return
2930
}

0 commit comments

Comments
 (0)