Fix i2pcontrol.listen.port to send exception string on failure.

This commit is contained in:
dev
2015-06-23 03:31:10 +00:00
parent 27fa1b31b0
commit 45bc108e94

View File

@ -125,7 +125,8 @@ public class I2PControlHandler implements RequestHandler {
return new JSONRPC2Response(
new JSONRPC2Error(JSONRPC2Error.INVALID_PARAMS.getCode(),
"\"i2pcontrol.port\" has been set to a port that is already in use, reverting. " +
inParam + " is an already used port."),
inParam + " is an already used port.\n"
+ "Exception: " + e.toString()),
req.getID());
}
}