Skip to content

Commit a63213a

Browse files
authored
Merge pull request #59 from joereynolds/feature/add-file-path-to-exception
Add file path to exception
2 parents 5636fea + 76332b9 commit a63213a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DiffFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function getChangedLines(): array
2828
!is_readable($this->fileLocation) &&
2929
strpos($this->fileLocation, "php://") !== 0
3030
)) {
31-
throw new InvalidArgumentException("Can't read file", 1);
31+
throw new InvalidArgumentException("Can't read file {$this->fileLocation}", 1);
3232
}
3333

3434
$handle = fopen($this->fileLocation, 'r');

0 commit comments

Comments
 (0)