Skip to content

Commit fc3719c

Browse files
committed
Provide path of errornous file in Exception
1 parent 639481a commit fc3719c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Service/Note.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function getContent() : string {
4242
$content = '';
4343
}
4444
if (!is_string($content)) {
45-
throw new \Exception('Can\'t read file content.');
45+
throw new \Exception('Can\'t read file content for '.$this->file->getPath());
4646
}
4747
if (!mb_check_encoding($content, 'UTF-8')) {
4848
$content = mb_convert_encoding($content, 'UTF-8');

0 commit comments

Comments
 (0)