Commit 3a7726a5 authored by michael.simon's avatar michael.simon
Browse files

Close BufferedReader, use logger instead of e.printStackTrace, Remove

usage of System.exit. This will end the whole application server.
parent 2d030401
......@@ -231,7 +231,8 @@ private String execute(String method, String user, String email, String password
line = br.readLine();
br.close();
/* Close this session */
sess.close();
......@@ -241,8 +242,8 @@ private String execute(String method, String user, String email, String password
conn.close();
} catch (IOException e) {
e.printStackTrace(System.err);
System.exit(2);
logger.error("IOExcetion happened in SSH Session", e);
throw new RegisterException(e);
}
return line;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment