Use ERROR_ARGS_AT
This commit is contained in:
parent
6384f7981c
commit
cb40432c74
@ -8270,7 +8270,7 @@ compile_builtin_function_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NOD
|
||||
NODE *args_node = node->nd_args;
|
||||
|
||||
if (parent_block != NULL) {
|
||||
COMPILE_ERROR(iseq, nd_line(line_node), "should not call builtins here.");
|
||||
COMPILE_ERROR(ERROR_ARGS_AT(line_node) "should not call builtins here.");
|
||||
return COMPILE_NG;
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user