When running bundle exec rails generate dfe:analytics:install after installing the gem on a Rails 8.1.1 application, I receive the following error
After investigating, the crash seems to be caused when raising the ConfigurationError if there are any configuration errors. I've investigated further and the same thing seems to occur when using a StandardError or an Exception. The errors do output on the screen correctly but something at the end of the exception causes the entire application to crash.
When running
bundle exec rails generate dfe:analytics:installafter installing the gem on a Rails 8.1.1 application, I receive the following errorAfter investigating, the crash seems to be caused when raising the
ConfigurationErrorif there are any configuration errors. I've investigated further and the same thing seems to occur when using aStandardErroror anException. The errors do output on the screen correctly but something at the end of the exception causes the entire application to crash.