diff --git a/src/core/util/error.js b/src/core/util/error.js index 6110639e4a..e4604ecf23 100644 --- a/src/core/util/error.js +++ b/src/core/util/error.js @@ -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)