Fix #2003: Long stack traces are truncated

This commit is contained in:
Joe Cheng
2018-04-09 17:28:42 -07:00
committed by Winston Chang
parent 84aba546bc
commit b7b696630f

View File

@@ -338,7 +338,7 @@ printStackTrace <- function(cond,
message(" [No stack trace available]")
} else {
width <- floor(log10(max(st$num))) + 1
message(paste(collapse = "\n", paste0(
formatted <- paste0(
" ",
formatC(st$num, width = width),
": ",
@@ -349,8 +349,10 @@ printStackTrace <- function(cond,
crayon::blue$bold(name)
else
crayon::white(name)
})
)))
}),
"\n"
)
cat(file = stderr(), formatted, sep = "")
}
st