aerni / statamic-font-awesome

A Statamic addon to easily add Font Awesome icons
https://statamic.com/addons/aerni/font-awesome
MIT License
3 stars 3 forks source link

Missing API/Kit token should not throw an exception #8

Closed dryven-dano closed 2 years ago

dryven-dano commented 2 years ago

In my opinion, it is a bit harsh to throw an exception when booting the addon for a missing token to the Font Awesome API or a Font Awesome Kit. If so, this exception should only be thrown during development and only when the Font Awesome tag is used in a template. Otherwise, an info warning should be recorded in the log and simply no Font Awesome icon should be output.

aerni commented 2 years ago

Feel free to PR this change.