HomeFreeBSD

nuageinit: Standardize warning/error messages

Description

nuageinit: Standardize warning/error messages

Standardize the utilities from nuage.lua, to return nil on failure, plus
an error message as a second result, and some value different from nil
on success.

Make warnmsg() and errmsg() append "nuageinit: " by default. Pass an
optional second parameter as false to avoid printing this tag.

Signed-off-by: Jose Luis Duran <jlduran@gmail.com>

Details

Provenance
jlduranAuthored on Jul 30 2024, 1:18 AM
baptCommitted on Sep 26 2024, 10:59 AM
Parents
rG9b2d92addc31: nuageinit: Replace os.execute with Lua libraries
Branches
Unknown
Tags
Unknown