Skip to content

Commit 76332b9

Browse files
committed
Add file path to exception
1 parent 5636fea commit 76332b9

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)