Skip to content

Commit

Permalink
a little more information on sesh_res?
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Jul 8, 2024
1 parent ea848bc commit d5c4639
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/syrup.R
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ syrup <- function(expr, interval = .5, peak = FALSE, env = caller_env()) {
if (!is.null(sesh_res$error)) {
stop(gsub("\n", " ", conditionMessage(sesh_res$error)))
} else {
stop(paste0("Code: ", sesh_res$code,
stop(paste0("Class: ", paste0(class(sesh_res), collapse = ""),
"Code: ", sesh_res$code,
" Message: ", sesh_res$message,
" stderr: ", sesh_res$stderr))
}
Expand Down

0 comments on commit d5c4639

Please sign in to comment.