Permalink
Browse files

Don't pluralize "seconds" if there is only 1 second remaining

  • Loading branch information...
sferik committed Jan 20, 2014
1 parent da236d1 commit 3c9c6b2a8c5db6bd6745515708180fa338053383
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/t
View
2 bin/t
@@ -24,7 +24,7 @@ rescue OAuth::Unauthorized
pute 'Authorization failed'
rescue Twitter::Error::TooManyRequests => error
pute error.message,
- "The rate limit for this request will reset in #{error.rate_limit.reset_in} seconds.",
+ "The rate limit for this request will reset in #{error.rate_limit.reset_in} #{error.rate_limit.reset_in == 1 ? 'second' : 'seconds'}.",
'While you wait, consider making a polite request for Twitter to increase the API rate limit at https://dev.twitter.com/discussions/10644'
rescue Twitter::Error::BadRequest => error
pute error.message,

0 comments on commit 3c9c6b2

Please sign in to comment.