fluid-components icon indicating copy to clipboard operation
fluid-components copied to clipboard

[BUGFIX] Clarify exception for missing ViewHelper

Open s2b opened this issue 11 months ago • 0 comments

Currently, the exception message for a missing ViewHelper includes the "fake component namespace" without the ViewHelper suffix. This makes the exception hard to understand, since the problem is probably not related to a missing component but to a missing ViewHelper.

before:

The ViewHelper "vac:asset.vite" could not be resolved. Based on your spelling, the system would load the class "Praetorius\ViteAssetCollector\ViewHelpers\Asset\Vite", however this class does not exist.

after:

The ViewHelper "vac:asset.vite" could not be resolved. Based on your spelling, the system would load the class "Praetorius\ViteAssetCollector\ViewHelpers\Asset\ViteViewHelper", however this class does not exist.

s2b avatar Feb 16 '25 13:02 s2b