Include context information in the error message to support debugging