Skip to content

Commit

Permalink
Add "reverse-domain id" to an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytonyli committed Jan 19, 2024
1 parent 8a12594 commit 3cc7a80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion WordPressKit/WordPressComRestApi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,11 @@ extension WordPressComRestApi {
return nil
}

let message = NSLocalizedString("Limit reached. You can try again in 1 minute. Trying again before that will only increase the time you have to wait before the ban is lifted. If you think this is in error, contact support.", comment: "Message to show when a request for a WP.com API endpoint is throttled")
let message = NSLocalizedString(
"wordpresskit.api.message.endpoint_throttled",
value: "Limit reached. You can try again in 1 minute. Trying again before that will only increase the time you have to wait before the ban is lifted. If you think this is in error, contact support.",
comment: "Message to show when a request for a WP.com API endpoint is throttled"
)
return .init(
code: .tooManyRequests,
apiErrorCode: "too_many_requests",
Expand Down

0 comments on commit 3cc7a80

Please sign in to comment.