Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pr/133' into pulls
Browse files Browse the repository at this point in the history
Correct spelling in some error messages
Grive#133
  • Loading branch information
mMerlin committed Apr 12, 2015
2 parents dbfe421 + 92f9a4f commit f57e4aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libgrive/src/protocol/AuthAgent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ std::string AuthAgent::Unescape( const std::string& str )

bool AuthAgent::CheckRetry( long response )
{
// HTTP 500 and 503 should be temperory. just wait a bit and retry
// HTTP 500 and 503 should be temporary. just wait a bit and retry
if ( response == 500 || response == 503 )
{
Log( "resquest failed due to temperory error: %1%. retrying in 5 seconds",
Log( "request failed due to temporary error: %1%. retrying in 5 seconds",
response, log::warning ) ;

os::Sleep( 5 ) ;
Expand All @@ -149,7 +149,7 @@ bool AuthAgent::CheckRetry( long response )
// HTTP 401 Unauthorized. the auth token has been expired. refresh it
else if ( response == 401 )
{
Log( "resquest failed due to auth token expired: %1%. refreshing token",
Log( "request failed due to auth token expired: %1%. refreshing token",
response, log::warning ) ;

m_auth.Refresh() ;
Expand Down

0 comments on commit f57e4aa

Please sign in to comment.