Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 20c4419

Browse filesBrowse files
committed
[Console] Give errors back to error handlers if not handled by console.error listeners
1 parent 47740ce commit 20c4419
Copy full SHA for 20c4419

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

‎src/Symfony/Component/Console/Application.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Application.php
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ public function run(InputInterface $input = null, OutputInterface $output = null
138138
$e = null;
139139
$exitCode = 0;
140140
} else {
141+
if (!$e instanceof \Exception) {
142+
throw $e;
143+
}
141144
$exitCode = $e->getCode();
142145
}
143146

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.