diff --git a/CHANGELOG.md b/CHANGELOG.md index c6ff32f..a572e32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Failed jobs view now renders error class and message correctly (seed data format and missing CSS class) + ## [0.2.0] - 2026-05-18 ### Added diff --git a/app/views/solid_queue_web/failed_jobs/index.html.erb b/app/views/solid_queue_web/failed_jobs/index.html.erb index 8807dad..c243fae 100644 --- a/app/views/solid_queue_web/failed_jobs/index.html.erb +++ b/app/views/solid_queue_web/failed_jobs/index.html.erb @@ -25,7 +25,7 @@ <%= execution.exception_class %>: <%= execution.message %> <% else %> - + <% end %> <%= execution.created_at.strftime("%Y-%m-%d %H:%M:%S") %> diff --git a/spec/dummy/db/seeds.rb b/spec/dummy/db/seeds.rb index 479100f..b8204bc 100644 --- a/spec/dummy/db/seeds.rb +++ b/spec/dummy/db/seeds.rb @@ -101,7 +101,7 @@ job.ready_execution&.destroy SolidQueue::FailedExecution.create!( job: job, - error: { class: err[:class], message: err[:message], backtrace: [ "app/jobs/#{job.class_name.underscore}.rb:42" ] }.to_json, + error: { exception_class: err[:class], message: err[:message], backtrace: [ "app/jobs/#{job.class_name.underscore}.rb:42" ] }, created_at: job.created_at ) end