Skip to content

Commit

Permalink
call correct which= in sys.call() (#6255)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Jul 15, 2024
1 parent bbe7563 commit dc39c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/translation.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ catf = function(fmt, ..., sep=" ", domain="R-data.table") {
}

raise_condition = function(signal, message, classes, immediate=FALSE, appendLF=FALSE) {
obj = list(message=message, call=sys.call(2))
obj = list(message=message, call=sys.call(sys.nframe()-2L))
# NB: append _after_ translation
if (appendLF) obj$message = paste0(obj$message, "\n")
setattr(obj, "class", classes)
Expand Down

0 comments on commit dc39c97

Please sign in to comment.