Skip to content

Commit

Permalink
improving error message for Could not resolve config path
Browse files Browse the repository at this point in the history
$directory_path is false, so better use $prospective_directory_path in the error message.
  • Loading branch information
phptest2 committed Feb 3, 2022
1 parent 2128ab1 commit 582624a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Psalm/Config/FileFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ public static function loadFromArray(
}

throw new ConfigException(
'Could not resolve config path to ' . $base_dir
. DIRECTORY_SEPARATOR . $directory_path
'Could not resolve config path to ' . $prospective_directory_path
);
}

Expand Down

0 comments on commit 582624a

Please sign in to comment.