File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -197,14 +197,9 @@ SEXP R_igraph_handle_safe_eval_result(SEXP result) {
197
197
SEXP condition_message = PROTECT(Rf_install("conditionMessage"));
198
198
SEXP condition_message_call = PROTECT(Rf_lang2(condition_message, result));
199
199
SEXP evaluated_condition_message = PROTECT(Rf_eval(condition_message_call, R_GlobalEnv));
200
+ // error(CHAR(STRING_ELT(evaluated_condition_message, 0)));
200
201
// fix for 'format string is not a string literal' flag warning
201
- const char *message_char;
202
- message_char = CHAR(STRING_ELT(evaluated_condition_message, 0));
203
- if (message_char != NULL) {
204
- error(message_char);
205
- } else {
206
- error("Something screwed up in R_igraph_handle_safe_eval_result()");
207
- }
202
+ REprintf("%s\n", CHAR(STRING_ELT(evaluated_condition_message, 0)));
208
203
UNPROTECT(3);
209
204
return R_NilValue;
210
205
You can’t perform that action at this time.
0 commit comments