DEV: include `time_left` information in rate limiting error messages (#17037)

This commit is contained in:
Arpit Jalan 2022-06-08 14:30:41 +05:30 committed by GitHub
parent 55d7aa0190
commit 4bc2d54685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class ApplicationController < ActionController::Base
e.description,
type: :rate_limit,
status: 429,
extras: { wait_seconds: retry_time_in_seconds },
extras: { wait_seconds: retry_time_in_seconds, time_left: e&.time_left },
headers: response_headers
)
end