+newlines on error
authorChad Horohoe <demon@users.mediawiki.org>
Sun, 2 Aug 2009 19:40:30 +0000 (19:40 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sun, 2 Aug 2009 19:40:30 +0000 (19:40 +0000)
maintenance/Maintenance.php

index a18376b..edfbe79 100644 (file)
@@ -295,7 +295,7 @@ abstract class Maintenance {
 
                # Make sure we can handle script parameters
                if( !ini_get( 'register_argc_argv' ) ) {
-                       $this->error( "Cannot get command line arguments, register_argc_argv is set to false", true );
+                       $this->error( "Cannot get command line arguments, register_argc_argv is set to false\n", true );
                }
 
                if( version_compare( phpversion(), '5.2.4' ) >= 0 ) {
@@ -453,7 +453,7 @@ abstract class Maintenance {
 
                # Also make sure we've got enough arguments
                if ( count( $this->mArgs ) < count( $this->mArgList ) ) {
-                       $this->error( "Not enough arguments passed", true );
+                       $this->error( "Not enough arguments passed\n", true );
                }
        }