Loading…
None
New source string testing_project / Documentation: reference/reference_lua/errno — English |
Glossary
| English | English | ||
|---|---|---|---|
| No related strings found in the glossary. | |||
Loading…
None
New source string testing_project / Documentation: reference/reference_lua/errno — English |
| English | English | ||
|---|---|---|---|
| No related strings found in the glossary. | |||
> local fio = require('fio')
> local errno = require('errno')
> fio.open('no_such_file')
> print('errno() = ' .. errno())
> print('errno.strerror() = ' .. errno.strerror())
> local t = getmetatable(errno).__index
> for k, v in pairs(t) do
> if v == errno() then
> print('errno() constant = ' .. k)
> end
> end
> end
---
...
tarantool> f()
errno() = 2
errno.strerror() = No such file or directory
errno() constant = ENOENT
---
...