better error messages when scribe can't establish a network connection
This commit is contained in:
1 parent
9f4569fbbc
commit
24babbae02
2 files changed
+10
-4
No files matched your search
@@ -59,9 +59,14 @@ class Request
|
||||
{
|
||||
createConnection();
|
||||
return doSend();
|
||||
} catch (IOException ioe)
|
||||
}
|
||||
catch (UnknownHostException uhe)
|
||||
{
|
||||
throw new OAuthException("Problems while creating connection", ioe);
|
||||
throw new OAuthException("Could not reach the desired host. Check your network connection.", uhe);
|
||||
}
|
||||
catch (IOException ioe)
|
||||
{
|
||||
throw new OAuthException("Problems while creating connection.", ioe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user