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
Unknown Object (File)
Fri, May 22, 5:11 PM
Unknown Object (File)
Fri, May 22, 1:50 PM
Unknown Object (File)
Thu, May 21, 8:54 PM
Unknown Object (File)
Wed, May 20, 1:13 PM
Unknown Object (File)
Sat, May 9, 9:35 AM
Unknown Object (File)
Tue, Apr 28, 5:08 AM
Unknown Object (File)
Apr 15 2026, 5:21 PM
Unknown Object (File)
Apr 5 2026, 2:13 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