Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1098750
D361.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Aug 14, 4:58 AM
Size
666 B
Mime Type
text/x-diff
Expires
Fri, Aug 15, 4:58 AM (1 h, 35 m)
Engine
blob
Format
Raw Data
Handle
711437
Attached To
D361: INP-1764 - Set correct exit code, when exception happens in CLI
D361.diff
View Options
Index: branches/5.2.x/core/kernel/utility/logger.php
===================================================================
--- branches/5.2.x/core/kernel/utility/logger.php
+++ branches/5.2.x/core/kernel/utility/logger.php
@@ -1278,11 +1278,10 @@
if ( PHP_SAPI === 'cli' ) {
echo $error_msg;
- }
- else {
- echo '<div style="background-color: #FEFFBF; margin: ' . $margin . '; padding: 10px; border: 2px solid red; text-align: center">' . $error_msg . '</div>';
+ exit(1);
}
+ echo '<div style="background-color: #FEFFBF; margin: ' . $margin . '; padding: 10px; border: 2px solid red; text-align: center">' . $error_msg . '</div>';
exit;
}
Event Timeline
Log In to Comment