Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js |
— | — | @@ -736,11 +736,15 @@ |
737 | 737 | } else if ( result && result.upload.warnings ) { |
738 | 738 | var warnings = result.upload.warnings; |
739 | 739 | if ( warnings['was-deleted'] ) { |
740 | | - _this.recoverFromError( _this.titleId, gM( 'mwe-upwiz-api-warning-was-deleted' ) ); |
| 740 | + _this.recoverFromError( _this.titleId, gM( 'mwe-upwiz-api-warning-was-deleted', _this.upload.title.toString() ) ); |
741 | 741 | } else if ( warnings['thumb'] ) { |
742 | 742 | _this.recoverFromError( _this.titleId, gM( 'mwe-upwiz-error-title-thumbnail' ) ); |
743 | 743 | } else if ( warnings['bad-prefix'] ) { |
744 | 744 | _this.recoverFromError( _this.titleId, gM( 'mwe-upwiz-error-title-senselessimagename' ) ); |
| 745 | + } else if ( warnings['exists'] ) { |
| 746 | + _this.recoverFromError( _this.titleId, gM( 'mwe-upwiz-api-warning-exists', _this.upload.title.getUrl() ) ); |
| 747 | + } else if ( warnings['duplicate'] ) { |
| 748 | + _this.showError( 'duplicate', gM( 'mwe-upwiz-upload-error-duplicate' ) ); |
745 | 749 | } else { |
746 | 750 | var warningsKeys = []; |
747 | 751 | $j.each( warnings, function( key, val ) { |