From 287dae5ad0a331fec295b84823fa45d6c658bef9 Mon Sep 17 00:00:00 2001 From: Jack Wilkinson Date: Sun, 14 Jul 2024 20:55:22 +0100 Subject: [PATCH] Swapped exception --- modules/system/traits/AssetMaker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system/traits/AssetMaker.php b/modules/system/traits/AssetMaker.php index 9f711819b2..1e213fd747 100644 --- a/modules/system/traits/AssetMaker.php +++ b/modules/system/traits/AssetMaker.php @@ -7,7 +7,7 @@ use System\Classes\Vite; use System\Models\Parameter; use System\Models\PluginVersion; -use Winter\Storm\Exception\ApplicationException; +use Winter\Storm\Exception\SystemException; use Winter\Storm\Support\Facades\Event; use Winter\Storm\Support\Facades\File; use Winter\Storm\Support\Facades\Html; @@ -215,7 +215,7 @@ public function addVite(array|string $entrypoints, ?string $package = null): voi if (is_null($package)) { $caller = get_called_class(); if (!($plugin = PluginManager::instance()->findByNamespace($caller))) { - throw new ApplicationException('Unable to determine vite package from namespace: ' . $caller); + throw new SystemException('Unable to determine vite package from namespace: ' . $caller); } // Set package to the plugin id $package = $plugin->getPluginIdentifier();