f-29: watchdog: change error messages #29

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-08-18 00:05:04 +02:00
commit d8ece59d1c
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
10 changed files with 63 additions and 63 deletions

View file

@ -52,7 +52,7 @@ func checkUnit(kind, name, unit string, u unitChecker, n notify.Notifier) {
}
st, err := u.Status(unit)
if err != nil {
n.Notify(kind, name, fmt.Sprintf("unit %s illisible: %v", unit, err))
n.Notify(kind, name, fmt.Sprintf("unit %s unreadable: %v", unit, err))
return
}
if st.ActiveState != "active" {
@ -64,7 +64,7 @@ func linkProblem(iface string) string {
up, err := netif.LinkIsUp(iface)
switch {
case err != nil:
return fmt.Sprintf("interface %s introuvable: %v", iface, err)
return fmt.Sprintf("interface %s not found: %v", iface, err)
case !up:
return fmt.Sprintf("interface %s down", iface)
}