Skip to content

Commit

Permalink
Swapped exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwilko committed Jul 14, 2024
1 parent 6409346 commit 287dae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/system/traits/AssetMaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 287dae5

Please sign in to comment.