#1031077 Should resolve error codes to text when sending e-mail

Package:
watchdog
Source:
watchdog
Description:
system health checker and software/hardware watchdog handler
Submitter:
Christoph Biedl
Date:
2023-02-11 08:45:04 UTC
Severity:
normal
Tags:
#1031077#5
Date:
2023-02-11 08:42:31 UTC
From:
To:
Today, for the first time in years, watchdog was able to send an e-mail
before resetting the system - I guess usually this is triggered that
fast the message doesn't get through.

But that message wasn't really helpful:

| Message from watchdog:
| The system will be rebooted because of error 253!

A glance into the manpage (I was faster checking the sources, though)
is needed to resolve that into a textual description. However, there's
already a function "wd_strerror" that does this job.

So that one could be used in "send_email" to provide more helpful
messages. Or did I miss a reason to not do this?

    Christoph