simplifying rcpp11_error_handler