mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Merge "Don't try to JSON stringify load error messages that are already strings"
This commit is contained in:
commit
1ac5ede187
|
@ -710,6 +710,8 @@ ve.init.mw.DesktopArticleTarget.prototype.loadFail = function ( error, errorText
|
|||
}
|
||||
} else if ( errorInfo ) {
|
||||
confirmPromptMessage = ve.msg( 'visualeditor-loadwarning', errorText + ': ' + errorInfo );
|
||||
} else if ( typeof error === 'string' ) {
|
||||
confirmPromptMessage = error;
|
||||
} else {
|
||||
// At least give the devs something to work from
|
||||
confirmPromptMessage = JSON.stringify( error );
|
||||
|
|
Loading…
Reference in a new issue