diff --git a/DESCRIPTION b/DESCRIPTION index b9cc9a4..89bf885 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: xfun Type: Package Title: Supporting Functions for Packages Maintained by 'Yihui Xie' -Version: 0.43.1 +Version: 0.43.2 Authors@R: c( person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), person("Wush", "Wu", role = "ctb"), diff --git a/R/utils.R b/R/utils.R index 21a5c8a..b6cc1c6 100644 --- a/R/utils.R +++ b/R/utils.R @@ -345,7 +345,6 @@ handle_error = function( ) { withCallingHandlers(expr, error = function(e) { loc = if (is.function(fun)) trimws(fun(label)) else '' - if (loc != '') loc = sprintf(' at lines %s', loc) message(one_string(handler(e, loc))) }) }