Skip to content

Commit

Permalink
Provide path of errornous file in Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
korelstar committed Aug 25, 2020
1 parent 639481a commit fc3719c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/Note.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function getContent() : string {
$content = '';
}
if (!is_string($content)) {
throw new \Exception('Can\'t read file content.');
throw new \Exception('Can\'t read file content for '.$this->file->getPath());
}
if (!mb_check_encoding($content, 'UTF-8')) {
$content = mb_convert_encoding($content, 'UTF-8');
Expand Down

0 comments on commit fc3719c

Please sign in to comment.