Merge branch 'feature/check_connection' into 'master'

Make client report connection issues to servers

See merge request sheepitrenderfarm/client!140
This commit is contained in:
Sheepit Renderfarm
2022-08-30 18:11:17 +00:00
3 changed files with 13 additions and 1 deletions

View File

@@ -653,6 +653,13 @@ public class Server extends Thread {
return ServerCode.UNKNOWN;
}
catch (ConnectException e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
this.log.error(checkpoint, String.format("Server::HTTPSendFile Error in upload process. Exception %s stacktrace ", e.getMessage()) + sw.toString());
return ServerCode.SERVER_CONNECTION_FAILED;
}
catch (IOException e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);