log exception and continue
This commit is contained in:
@@ -558,8 +558,8 @@ class Media extends Model
|
|||||||
try {
|
try {
|
||||||
static::$storageFileListCache[$disk] = Storage::disk($disk)->allFiles();
|
static::$storageFileListCache[$disk] = Storage::disk($disk)->allFiles();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
Log::error($e->getMessage());
|
Log::error("Cannot get a file list for storage device '$disk'. Error: " . $e->getMessage());
|
||||||
throw new \Exception("Cannot get a file list for storage device '$disk'");
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user