mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
Merge "Unbreak 404 handling code"
This commit is contained in:
commit
d24844af2e
|
@ -172,7 +172,7 @@
|
|||
function ( response ) {
|
||||
if ( response.status === 404 ) {
|
||||
// Page does not exist, so let the user start with a blank document.
|
||||
return $.Deferred().resolve( '' ).promise();
|
||||
return $.Deferred().resolve( [ '', undefined ] ).promise();
|
||||
} else {
|
||||
window.alert( mw.msg( 'visualeditor-loaderror-message', 'HTTP ' + response.status ) );
|
||||
|
||||
|
|
Loading…
Reference in a new issue