mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
Link the upgrade guide for bad custom driver error
This commit is contained in:
@@ -30,7 +30,7 @@ public function pruneMissingDirectories(): void
|
|||||||
try {
|
try {
|
||||||
Configuration::prune();
|
Configuration::prune();
|
||||||
} catch (\JsonException $e) {
|
} catch (\JsonException $e) {
|
||||||
warning('Invalid confiuration file at '.Configuration::path().'.');
|
warning('Invalid configuration file at '.Configuration::path().'.');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -91,6 +91,8 @@ public function errorIfOldCustomDrivers(): void
|
|||||||
|
|
||||||
if (! str_contains($this->files->get($driversPath.'/'.$driver), 'namespace')) {
|
if (! str_contains($this->files->get($driversPath.'/'.$driver), 'namespace')) {
|
||||||
warning('Please make sure all custom drivers have been upgraded for Valet 4.');
|
warning('Please make sure all custom drivers have been upgraded for Valet 4.');
|
||||||
|
warning('See the upgrade guide for more info:');
|
||||||
|
warning('https://github.com/laravel/valet/blob/master/UPGRADE.md');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user