Skip to content

Commit d813c59

Browse files
committed
change default error behavior to throw
1 parent a5cd31a commit d813c59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/observer/watcher.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ export default class Watcher {
102102
if (config.errorHandler) {
103103
config.errorHandler.call(null, e, this.vm)
104104
} else {
105-
warn(e.stack)
105+
throw e
106106
}
107107
}
108108
// return old value when evaluation fails so the current UI is preserved
109+
// if the error was somehow handled by user
109110
value = this.value
110111
}
111112
// "touch" every property so they are all tracked as

0 commit comments

Comments
 (0)