Commit 604bc534 authored by Hendrik Heneke's avatar Hendrik Heneke
Browse files

Bugfix: Use string path for exception message.

parent 3a3ed154
Pipeline #366 passed with stage
in 27 seconds
...@@ -15,7 +15,7 @@ class FileReader ...@@ -15,7 +15,7 @@ class FileReader
public function read() public function read()
{ {
if (!$this->file->exists()) { if (!$this->file->exists()) {
throw new \RuntimeException("File {$this->file} does not exist!"); throw new \RuntimeException("File {$this->file->asString()} does not exist!");
} }
return file_get_contents($this->file->asString()); return file_get_contents($this->file->asString());
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment