You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, my code is throwing an AssetException here, which is not getting caught here, and I cannot suppress it.
In my staging environment, my assets are not synced up with production, but I am using a production database copy... so sometime images do not exist. My twig templates are doing some really weird things, breaking when an image is not available and imager.transformImage is called. I need to be able to suppress these Exceptions.
This is related to this issue as well (#298), which is making setting suppressExceptions pointless in devMode.
The text was updated successfully, but these errors were encountered:
If
suppressExceptions
is true, it will suppress the ImagerException here:Imager-Craft/src/services/ImagerService.php
Lines 330 to 345 in b9f01d7
However, my code is throwing an AssetException here, which is not getting caught here, and I cannot suppress it.
In my staging environment, my assets are not synced up with production, but I am using a production database copy... so sometime images do not exist. My twig templates are doing some really weird things, breaking when an image is not available and imager.transformImage is called. I need to be able to suppress these Exceptions.
This is related to this issue as well (#298), which is making setting suppressExceptions pointless in devMode.
The text was updated successfully, but these errors were encountered: