mergeMessageFileList.php: abort on read error

If there is a parse error or if one of the files in the extension list
doesn't exist, exit with an error. mw-update-l10n has set -e so it will
abort without syncing the new file.

Change-Id: Idaad65783127b075626c102a8dc02e22df1588b7
This commit is contained in:
Tim Starling 2013-04-05 12:03:31 +11:00
parent c1af48f761
commit 9c5d996773

View file

@ -98,7 +98,10 @@ foreach ( $mmfl['setupFiles'] as $fileName ) {
if ( empty( $mmfl['quiet'] ) ) {
fwrite( STDERR, "Loading data from $fileName\n" );
}
include_once( $fileName );
if ( !include_once( $fileName ) ) {
fwrite( STDERR, "Unable to read $fileName\n" );
exit( 1 );
}
}
fwrite( STDERR, "\n" );
$s =