@@ -58,6 +58,9 @@ class JsonFile
));
$json = file_get_contents($this->path, false, $context);
+ if (!$json) {
+ throw new \RuntimeException('Could not read '.$this->path.', you are probably offline');
+ }
return static::parseJson($json);
}