Skip to content

Commit

Permalink
Merge pull request #813 from drcapulet/alexc-too-long
Browse files Browse the repository at this point in the history
Fix parameter name when creating a run fails due to an argument that's too long
  • Loading branch information
adrianna-chang-shopify committed May 1, 2023
2 parents 097ba3b + 7a4b596 commit 7a5f629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/maintenance_tasks/runs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def create(&block)
rescue ActiveRecord::RecordInvalid => error
redirect_to(task_path(error.record.task_name), alert: error.message)
rescue ActiveRecord::ValueTooLong => error
task_name = params.fetch(:id)
task_name = params.fetch(:task_id)
redirect_to(task_path(task_name), alert: error.message)
rescue Runner::EnqueuingError => error
redirect_to(task_path(error.run.task_name), alert: error.message)
Expand Down

0 comments on commit 7a5f629

Please sign in to comment.