akeneo / php-coupling-detector

[Experimental] Detect all the coupling issues of your project with respect to the coupling rules you have defined.
MIT License
42 stars 6 forks source link

Improve exception message of ExtractionException #34

Open pierallard opened 7 years ago

pierallard commented 7 years ago

When there was an issue on ClassNameExtractor or NamespaceExtractor, the Exception does not link to any file. This PR improve the exception message to include the errored file.

pierallard commented 7 years ago

@jjanvier Because @nidup ask me to do this in his review :)

nidup commented 7 years ago

To avoid to pass the file in the extractor to throw a more accurate exception :)