Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5978542
errorLogger.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
663 B
Referenced Files
None
Subscribers
None
errorLogger.js
View Options
/*!
* 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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment