Closed ksss closed 8 years ago
I implemented LoadError#path.
LoadError#path
begin require 'nothing' rescue LoadError => e p e.message #=> 'cannot load such file -- nothing' p e.path #=> 'nothing' end
And unified error message to "cannot load such file -- #{path}". mrb_load_fail based on rb_load_fail.
mrb_load_fail
rb_load_fail
LGTM! Thanks.
I implemented
LoadError#path
.And unified error message to "cannot load such file -- #{path}".
mrb_load_fail
based onrb_load_fail
.