mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-26 20:53:31 +00:00
improve reported exceptions
This commit is contained in:
parent
e358f71b77
commit
0cbb076b9e
|
@ -33,6 +33,11 @@ try {
|
|||
exit($statusCode);
|
||||
} catch (Throwable $throwable) {
|
||||
$symfonyStyle = SymfonyStyleFactory::create();
|
||||
$symfonyStyle->error($throwable->getMessage());
|
||||
$symfonyStyle->error(sprintf(
|
||||
'%s in %s on line %d',
|
||||
$throwable->getMessage(),
|
||||
$throwable->getFile(),
|
||||
$throwable->getLine()
|
||||
));
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ services:
|
|||
_defaults:
|
||||
autowire: true
|
||||
|
||||
# PSR-4 autodiscovery
|
||||
Rector\:
|
||||
resource: '../../src'
|
||||
exclude: '../../src/{Node/Attribute.php,Rector/Contrib}'
|
||||
|
|
Loading…
Reference in New Issue
Block a user