messages on failure. (as in pass along the errors generated from publish() )
* (bug 19006) {{REVISIONUSER}} no longer acts like {{CURRENTUSER}} in some cases
* (bug 16019) $wgArticlePath = "/$1" no longer breaks API edit/watch actions
* (bug 18372) File types blacklisted by $wgFileBlacklist will no longer be shown as "Permitted file types" on the upload form
+* (bug 26379) importImages.php gives more descriptive error message on failure.
=== API changes in 1.18 ===
* (bug 26339) Throw warning when truncating an overlarge API result
} else {
$archive = $image->publish( $file );
if ( !$archive->isGood() ) {
- echo( "failed.\n" );
+ echo( "failed. (" .
+ $archive->getWikiText() .
+ ")\n" );
$failed++;
continue;
}
}
} else {
- echo( "failed.\n" );
+ echo( "failed. (at recordUpload stage)\n" );
$svar = 'failed';
}