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

net.wf.scan(false) fails on every second call #349

Open
Mynogs opened this issue May 2, 2020 · 2 comments
Open

net.wf.scan(false) fails on every second call #349

Mynogs opened this issue May 2, 2020 · 2 comments

Comments

@Mynogs
Copy link
Contributor

Mynogs commented May 2, 2020

If I call net.wf.scan(false) on the console input it fails with this message:

stdin:1: 134217730:general fail
stack traceback:
[C]: in field 'scan'
stdin:1: in main chunk
[C]: in ?

Next time it works. Then it fails. Then it works and so on.
Greetings

@ar055
Copy link

ar055 commented Jun 5, 2020

This not errors, see WIKI
if table is true: a Lua table with the scan's result, or an exception.
Use Exception handling

@Mynogs
Copy link
Contributor Author

Mynogs commented Jun 19, 2020

Where is this behavior documented in the wiki? The description for net.wf.scan is only a few lines long. I don't find anything there.

I entered net.wf.scan(false) in the console. Therefore true and not false as parameters. Exception handling is for a Lua program, not for the console. I know that.
Greetings

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

2 participants