Merge branch 'fix/network' into 'master'

Fix: raise the right exception on failed to connect to server

See merge request sheepitrenderfarm/client!241
This commit is contained in:
Sheepit Renderfarm
2023-09-16 07:17:19 +00:00

View File

@@ -482,6 +482,9 @@ public class Server extends Thread {
this.lastRequestTime = new Date().getTime();
return response;
}
catch (ConnectException e) {
throw new ConnectException("Unexpected response from HTTP Stack" + e.getMessage());
}
catch (IOException e) {
throw new IOException("Unexpected response from HTTP Stack" + e.getMessage());
}