r64590 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64589‎ | r64590 | r64591 >
Date:07:54, 4 April 2010
Author:siebrand
Status:deferred
Tags:
Comment:
More verbose error reporting
Modified paths:
  • /trunk/extensions/Translate/scripts/export.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/export.php
@@ -48,7 +48,7 @@
4949 }
5050
5151 if ( !is_writable( $options['target'] ) ) {
52 - STDERR( "Target directory is not writable" );
 52+ STDERR( "Target directory is not writable (" . $options['target'] . ")" );
5353 exit( 1 );
5454 }
5555 if ( isset( $options['threshold'] ) && intval( $options['threshold'] ) ) {
@@ -62,7 +62,7 @@
6363 $group = MessageGroups::getGroup( $options['group'] );
6464
6565 if ( !$group instanceof MessageGroup ) {
66 - STDERR( "Invalid group" );
 66+ STDERR( "Invalid group: " . $group );
6767 exit( 1 );
6868 }
6969

Follow-up revisions

RevisionCommit summaryAuthorDate
r64591Fix for r64590: use correct variablesiebrand08:05, 4 April 2010

Status & tagging log