Skip to content

Error during failsafe response: The asset 'exception_handler.css' was not found in the load path. #110

@jon-mcclung-fortyau

Description

@jon-mcclung-fortyau

I added this gem (version 0.8.0.0) to my Rails (version 7.0.4.3) project and added a basic configuration to the project

config.exception_handler = {
    dev: true
}

Then to test I added raise "Test exception" to my root action.

I get the following error:

Error during failsafe response: The asset 'exception_handler.css' was not found in the load path.

I tried adding it in config/initializers/assets.rb like so:

Rails.application.config.assets.precompile += %w[
  exception_handler.css
  ...
]

But as you might expect it did not work. I think it's because the css file is within the gem, not where I keep the rest of my js and css files. I asked ChatGPT and it said the css files should be added to the assets pipeline automatically by the gem. Does this mean there is a bug on your end since it's not being added properly or did I miss a step somewhere?

Thanks in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions