From a22aba631c0316a3b384ce985387b0dfe4c4a58d Mon Sep 17 00:00:00 2001 From: Al J Abadi Date: Wed, 11 Sep 2019 10:53:16 +1000 Subject: [PATCH] more informative error message for xml.rpc I noticed it was on the list to make it more informative but thought this makeshift remedy could save someone some time in the interim, possibly --- R/serialize.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/serialize.R b/R/serialize.R index f75c15a..b435f19 100644 --- a/R/serialize.R +++ b/R/serialize.R @@ -20,7 +20,7 @@ function(url, method, ..., .args = list(...), hdr = parseHTTPHeader(rdr$header()) if(as.integer(hdr[["status"]]) %/% 100 != 2) { # call an RCurl error generator function. - stop("Problems") + stop(sprintf("Error %s: %s", hdr[["status"]], hdr[["statusMessage"]])) } ans = rdr$value()