Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File.new calls undefined method on Errno #6

Closed
syuu1228 opened this issue Nov 15, 2013 · 1 comment
Closed

File.new calls undefined method on Errno #6

syuu1228 opened this issue Nov 15, 2013 · 1 comment

Comments

@syuu1228
Copy link

When sysopen failed on File.new, it calls Errno.handle.
But iij/mruby-errno doesn't have such API.
So when I tried to open non-existent file, I got NoMethodError instead of NoFileError.
Here's mirb output:

f = File.new("hoge")
(mirb):1: undefined method 'handle' for Errno (NoMethodError)

@ghost
Copy link

ghost commented Nov 15, 2013

Removed some useless code to fix it. Thanks!

ghost pushed a commit that referenced this issue Nov 15, 2013
syuu1228 added a commit to syuu1228/mruby-eshell that referenced this issue Nov 15, 2013
mattn pushed a commit to mattn/mruby-io that referenced this issue Jan 31, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant