improve error reporting reducing the `try` extent