Projects

Ticket #47: symbol_error.diff

File symbol_error.diff, 0.5 KB (added by dj2@…, 4 years ago)
  • vm_eval.c

     
    342342        format = "protected method `%s' called for %s"; 
    343343    } 
    344344    else if (last_call_status & NOEX_VCALL) { 
    345         format = "undefined local variable or method `%s' for %s"; 
     345        format = "undefined local variable or method `%s' for %s. " 
     346                 "This may also be due to a missing space in a " 
     347                 "'forKey: :symbol' call."; 
    346348        exc = rb_eNameError; 
    347349    } 
    348350    else if (last_call_status & NOEX_SUPER) {