diff --git a/src/Exceptions/BlueprintDoesNotExistException.php b/src/Exceptions/BlueprintNotFoundException.php similarity index 93% rename from src/Exceptions/BlueprintDoesNotExistException.php rename to src/Exceptions/BlueprintNotFoundException.php index 1428ca50c1..7c675ece45 100644 --- a/src/Exceptions/BlueprintDoesNotExistException.php +++ b/src/Exceptions/BlueprintNotFoundException.php @@ -10,7 +10,7 @@ use Statamic\Facades\Blueprint; use Statamic\Statamic; -class BlueprintDoesNotExistException extends Exception implements ProvidesSolution +class BlueprintNotFoundException extends Exception implements ProvidesSolution { protected $blueprintHandle; diff --git a/src/Http/Controllers/CP/Collections/EntriesController.php b/src/Http/Controllers/CP/Collections/EntriesController.php index 0d2a1c017b..b2f0dfddd6 100644 --- a/src/Http/Controllers/CP/Collections/EntriesController.php +++ b/src/Http/Controllers/CP/Collections/EntriesController.php @@ -6,7 +6,7 @@ use Illuminate\Validation\ValidationException; use Statamic\Contracts\Entries\Entry as EntryContract; use Statamic\CP\Breadcrumbs; -use Statamic\Exceptions\BlueprintDoesNotExistException; +use Statamic\Exceptions\BlueprintNotFoundException; use Statamic\Facades\Asset; use Statamic\Facades\Entry; use Statamic\Facades\Site; @@ -78,7 +78,7 @@ public function edit(Request $request, $collection, $entry) $blueprint = $entry->blueprint(); if (! $blueprint) { - throw new BlueprintDoesNotExistException($entry->get('blueprint')); + throw new BlueprintNotFoundException($entry->get('blueprint')); } if (User::current()->cant('edit-other-authors-entries', [EntryContract::class, $collection, $blueprint])) {