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)
Jan 7 2024, 10:24 PM
Unknown Object (File)
Dec 20 2023, 2:38 AM
Unknown Object (File)
Nov 12 2023, 9:55 PM
Unknown Object (File)
Jun 15 2023, 6:54 PM
Unknown Object (File)
Jun 3 2023, 1:42 AM
Unknown Object (File)
Jun 2 2023, 12:40 PM
Unknown Object (File)
Apr 23 2023, 11:01 PM
Unknown Object (File)
Mar 29 2023, 5:25 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