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:
parent
c1af48f761
commit
9c5d996773
1 changed files with 4 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in a new issue