mruby/mruby — pull request #511 by akiray03 (2012-10-28 11:35:49+00:00)
Title: change the error message (NoMethodError, NameError)

change error message for..

```
# ruby 1.9.3
$ ruby -e 'class A; end; A.new.foo'
-e:1:in `

': undefined method `foo' for # (NoMethodError)

# mruby (before)
$ ./bin/mruby -e 'class A; end; A.new.foo'
-e:1: no method named foo (NoMethodError)

# mruby (after)
$ ./bin/mruby -e 'class A; end; A.new.foo'
-e:1: undefined method 'foo' for # (NoMethodError)
```

```
# ruby 1.9.3
$ ruby -e 'class A; alias foo bar; end'
-e:1:in `': undefined method `bar' for class `A' (NameError)
from -e:1:in `

'

# mruby (before)
$ ./bin/mruby -e 'class A; alias foo bar; end'
-e:1: no method named bar
(NoMethodError)

# mruby (after)
$ ./bin/mruby -e 'class A; alias foo bar; end'
-e:1: undefined method 'bar' for class A (NameError)
```