8000 [Locale] fixed build-data exit code in case of an error · enumag/symfony@b72bc0b · GitHub
[go: up one dir, main page]

Skip to content

Commit b72bc0b

Browse files
committed
[Locale] fixed build-data exit code in case of an error
When passing a message to the exit() function, PHP returns 0 instead of an error code.
1 parent 124ad0d commit b72bc0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/Locale/Resources/data/build-data.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
function bailout($message)
1313
{
14-
exit($message."\n");
14+
echo $message."\n";
15+
16+
exit(1);
1517
}
1618

1719
function check_dir($source)

0 commit comments

Comments
 (0)
0