Skip to content

Commit

Permalink
Throw less exceptions to do
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Nov 13, 2023
1 parent abe2e15 commit f512c3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cli/controllers/AssetBundlesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public function actionPublishBundle(string $className): int
$rc = new ReflectionClass($className);

if (!$rc->isSubclassOf(AssetBundle::class) || !$rc->isInstantiable()) {
throw new Exception('Not a valid asset bundle.');
// TODO: enhance \craft\console\Controller::do to return
// non-error responses (skip)
return;
}

/** @var AssetBundle $assetBundle */
Expand Down

0 comments on commit f512c3e

Please sign in to comment.