Skip to content

Commit f0626a8

Browse files
committed
friendlier and instructive message when resource file has not been found / created.
1 parent 151954f commit f0626a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Resource.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ public static function jsonFileContent($filename)
546546
$fileFullname = Config::getResourceFilePath($filename);
547547

548548
if (!File::exists($fileFullname)) {
549-
throw new Exception('The file ' . $fileFullname . ' was not found!');
549+
throw new Exception('The resource file ' . $fileFullname . ' was not found! Perhaps, you need to run PHP artisan resource-file:create [name] or resource-file:from-database [tablename] ');
550550
}
551551

552552
return File::get($fileFullname);

0 commit comments

Comments
 (0)