Evan You 10 лет назад
Родитель
Сommit
192126fb80
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/directives/on.js

+ 3 - 2
src/directives/on.js

@@ -22,8 +22,9 @@ module.exports = {
   update: function (handler) {
     if (typeof handler !== 'function') {
       process.env.NODE_ENV !== 'production' && _.warn(
-        'Directive "v-on:' + this.expression + '" ' +
-        'expects a function value.'
+        'Directive v-on="' + this.arg + ': ' +
+        this.expression + '" expects a function value, ' +
+        'got ' + handler
       )
       return
     }