Fix api error for apierror-upload-missingresult
authorUmherirrender <umherirrender_de.wp@web.de>
Tue, 26 Mar 2019 21:44:05 +0000 (22:44 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Tue, 26 Mar 2019 21:44:05 +0000 (22:44 +0100)
The message key was wrong

Change-Id: I2cc4f9e1523bef6164eb9ff4b79655b007665fae

includes/api/ApiUpload.php

index 12ecd74..fc41e4e 100644 (file)
@@ -417,7 +417,7 @@ class ApiUpload extends ApiBase {
                if ( $this->mParams['filekey'] && $this->mParams['checkstatus'] ) {
                        $progress = UploadBase::getSessionStatus( $this->getUser(), $this->mParams['filekey'] );
                        if ( !$progress ) {
-                               $this->dieWithError( 'api-upload-missingresult', 'missingresult' );
+                               $this->dieWithError( 'apierror-upload-missingresult', 'missingresult' );
                        } elseif ( !$progress['status']->isGood() ) {
                                $this->dieStatusWithCode( $progress['status'], 'stashfailed' );
                        }