Improve error logging when endpoint not found (show endpoint id)

Small change to include the endpoint id in the error message.