1
0
Fork 0

Remove the error handler at the end of a run, fixes #5340

pull/5347/head
Jordi Boggiano 2016-05-15 12:04:41 +01:00
parent 0cca4d1a44
commit 206c3c52e0
1 changed files with 3 additions and 0 deletions

View File

@ -228,9 +228,12 @@ class Application extends BaseApplication
$io->writeError('<info>Memory usage: '.round(memory_get_usage() / 1024 / 1024, 2).'MB (peak: '.round(memory_get_peak_usage() / 1024 / 1024, 2).'MB), time: '.round(microtime(true) - $startTime, 2).'s'); $io->writeError('<info>Memory usage: '.round(memory_get_usage() / 1024 / 1024, 2).'MB (peak: '.round(memory_get_peak_usage() / 1024 / 1024, 2).'MB), time: '.round(microtime(true) - $startTime, 2).'s');
} }
restore_error_handler();
return $result; return $result;
} catch (\Exception $e) { } catch (\Exception $e) {
$this->hintCommonErrors($e); $this->hintCommonErrors($e);
restore_error_handler();
throw $e; throw $e;
} }
} }