Skip to content

Commit

Permalink
Fix error message printing
Browse files Browse the repository at this point in the history
`PRINTNAME` returns ann `STRSXP`.
  • Loading branch information
gaborcsardi committed Dec 10, 2023
1 parent 8b04658 commit 73a0ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/progress.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ SEXP clic_get_time(void) {
SEXP clic__find_var(SEXP rho, SEXP symbol) {
SEXP ret = Rf_findVarInFrame3(rho, symbol, TRUE);
if (ret == R_UnboundValue) {
error("Cannot find variable `%s`.", PRINTNAME(symbol));
error("Cannot find variable `%s`.", CHAR(PRINTNAME(symbol)));

} else if (TYPEOF(ret) == PROMSXP) {
PROTECT(ret);
Expand Down

0 comments on commit 73a0ba8

Please sign in to comment.