|
|
@@ -49,7 +49,11 @@ function globalHandleError (err, vm, info) {
|
|
|
try {
|
|
|
return config.errorHandler.call(null, err, vm, info)
|
|
|
} catch (e) {
|
|
|
- logError(e, null, 'config.errorHandler')
|
|
|
+ // if the user intentionally throws the original error in the handler,
|
|
|
+ // do not log it twice
|
|
|
+ if (e !== err) {
|
|
|
+ logError(e, null, 'config.errorHandler')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
logError(err, vm, info)
|