File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 22
33All notable changes to ` laravel-db-snapshots ` will be documented in this file
44
5+ ## 1.2.3 - 2019-06-28
6+
7+ - fix CannotCreateDisk exception when no disks are set up.
8+
59## 1.2.2 - 2019-06-27
610
711- fix compression option from config not being respected
Original file line number Diff line number Diff line change @@ -8,7 +8,13 @@ class CannotCreateDisk extends Exception
88{
99 public static function diskNotDefined (string $ diskName ): self
1010 {
11- $ existingDiskNames = implode (array_keys (config ('filesystems.disks ' )), ', ' );
11+ $ disks = config ('filesystems.disks ' , null );
12+
13+ if (! $ disks ) {
14+ return new static ("Cannot create a disk ` {$ diskName }`. There are no disks set up. " );
15+ }
16+
17+ $ existingDiskNames = implode (array_keys ($ disks ), ', ' );
1218
1319 return new static ("Cannot create a disk ` {$ diskName }`. Known disknames are {$ existingDiskNames }. " );
1420 }
You can’t perform that action at this time.
0 commit comments