Page MenuHomeWickedGov Phorge

errorLogger.js
No OneTemporary

Size
663 B
Referenced Files
None
Subscribers
None

errorLogger.js

/*!
* Plugin that captures errors from Vue code and logs them to mw.errorLogger
*/
module.exports = {
install: function ( app ) {
/**
* Track component errors that bubble up to the Vue.js runtime on the `error.vue` analytics
* event topic for one or more subscribers to send to an error logging service. Also log those
* errors to the console, which is the default behaviour of the Vue.js runtime.
*
* See also <https://phabricator.wikimedia.org/T249826>.
*
* @ignore
* @param {Error} error
*/
app.config.errorHandler = function ( error ) {
mw.errorLogger.logError( error, 'error.vue' );
mw.log.error( error );
};
}
};

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 3, 20:27 (3 d, 21 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a7/94/d44c8c2925644a70501c923b7508
Default Alt Text
errorLogger.js (663 B)

Event Timeline