Here it would be appropriate to use `erlang:error/2`: `erlang:error(bad_argument, [RemotePeer])`. That way, the faulty argument will appear in the stacktrace for this error.