fix: Suppress stack trace log as intended in #257. (#260)

This commit is contained in:
bgrozev 2022-05-12 12:10:52 -05:00 committed by GitHub
parent dec3a87d21
commit f41542dd7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -628,7 +628,7 @@ public class NetAccessManager
Connector ap = getConnector(srcAddr, remoteAddr);
if (ap == null)
{
throw new IllegalArgumentException("No socket found for " + srcAddr + "->" + remoteAddr);
throw new SocketNotFoundException("No socket found for " + srcAddr + "->" + remoteAddr);
}
ap.sendMessage(bytes, remoteAddr);