Skip to content

Add ActiveStorage::FileNotFoundError to ignored errors #88

@chorstikus

Description

@chorstikus

Currently, the list of ignored errors in SolidErrors::Subscriber::IGNORED_ERRORS is static and cannot be extended without modifying the source code directly.

We’d like to add:

ActiveStorage::FileNotFoundError

to the IGNORED_ERRORS array, since missing files in ActiveStorage are a common on staging server, often non-critical scenario that shouldn’t generate error reports.

Current Behavior

  • The ignored errors list is fixed.
  • Adding new ignored errors requires editing the gem directly.

Expected Behavior

  • ActiveStorage::FileNotFoundError should be ignored by default.
  • Ideally, the ignored errors list should be configurable, allowing users to extend or override it without patching the gem.

Suggested Solution

  • Add ActiveStorage::FileNotFoundError to the default IGNORED_ERRORS.
  • Provide a configuration option like:
SolidErrors.configure do |config|
  config.ignored_errors += ["ActiveStorage::FileNotFoundError"]
end

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