Page MenuHomeFreeBSD

Lua lfs.attributes: Provide a more consistent error return
ClosedPublic

Authored by cem on Feb 20 2018, 5:46 PM.
Tags
None
Referenced Files
F137618179: D14451.id39532.diff
Mon, Nov 24, 3:36 PM
F137587425: D14451.id39529.diff
Mon, Nov 24, 11:22 AM
F137520442: D14451.diff
Mon, Nov 24, 3:27 AM
F137472834: D14451.diff
Sun, Nov 23, 7:13 PM
Unknown Object (File)
Mon, Nov 3, 5:41 PM
Unknown Object (File)
Mon, Nov 3, 5:41 PM
Unknown Object (File)
Mon, Nov 3, 5:41 PM
Unknown Object (File)
Mon, Nov 3, 12:46 PM
Subscribers
None

Details

Summary

In remaining error case, return 3-tuple consistent with the other error return
case.

Document how to invoke lfs.attributes() and detect/decode error return in
example comments.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

+1 for consistency; it also feels like we should expose errno constants somewhere to lua, because that doesn't seem to be a thing at the moment.

This revision is now accepted and ready to land.Feb 20 2018, 6:18 PM
This revision was automatically updated to reflect the committed changes.

+1 for consistency; it also feels like we should expose errno constants somewhere to lua, because that doesn't seem to be a thing at the moment.

+1