1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Merge pull request #8827 from weirdan/improve-source-autodiscovery-failure-message

Improve source autodiscovery failure message
This commit is contained in:
orklah 2022-12-04 14:18:33 +01:00 committed by GitHub
commit 496b71d6d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,10 @@ final class Creator
if (!file_exists($composer_json_location)) {
throw new ConfigCreationException(
'Problem during config autodiscovery - could not find composer.json during initialization.'
'Problem during source autodiscovery - could not find composer.json during initialization. '
. 'If your project doesn\'t use Composer autoloader you will need to run '
. '`psalm --init source_folder`, e.g. `psalm --init library` if your source files '
. 'reside in `library` folder'
);
}
try {