Skip to content

Make io.open() return Error#389

Merged
dan200 merged 1 commit intodan200:masterfrom
JakobDev:ioerr
Aug 27, 2017
Merged

Make io.open() return Error#389
dan200 merged 1 commit intodan200:masterfrom
JakobDev:ioerr

Conversation

@JakobDev
Copy link
Contributor

If fs.open() failed, it will return nil and a a error message like "No such file" or "Out of space". This PR make, that io.open() returned this error too.

If fs.open() failed, it will return nil and a a error message like "No such file"  or "Out of space". This PR make, that io.open() returned this error too.
@SquidDev
Copy link
Contributor

It'd probably be worth adding the same check to loadfile, rather than the current "file not found", especially when #377 is merged

@dan200 dan200 merged commit 2fb6a9d into dan200:master Aug 27, 2017
@JakobDev JakobDev deleted the ioerr branch August 27, 2017 15:11
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

Successfully merging this pull request may close these issues.

3 participants

Comments