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>
(cherry picked from commit 945632ca76117029e7bd1f46d17ccb378973daf7)

Details

Provenance
jlduranAuthored on Jul 30 2024, 1:18 AM
baptCommitted on Oct 8 2024, 7:04 AM
Parents
rG1eaf3331eaee: nuageinit: Replace os.execute with Lua libraries
Branches
Unknown
Tags
Unknown