Log: improve error message in filterchain and tcp-server.