Skip to content

Commit daee2a6

Browse files
committed
Reinstate the render of this error to the UI.
- May need to remove/refactor this later, hence the separate commit.
1 parent 0f675e7 commit daee2a6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/controllers/application_controller.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ def notify_bad_request(exception)
4343
ERROR
4444

4545
Rails.logger.debug("#{error}, code: #{exception.code}")
46+
render plain: error, status: :bad_request
47+
else
48+
raise
4649
end
47-
48-
raise
4950
end
5051

5152
def require_govuk_editor(redirect_path: root_path)

0 commit comments

Comments
 (0)