diff options
author | laanwj <126646+laanwj@users.noreply.github.com> | 2022-04-20 19:41:30 +0200 |
---|---|---|
committer | laanwj <126646+laanwj@users.noreply.github.com> | 2022-04-28 10:24:06 +0200 |
commit | 718da302c7b11b375042c3000d421fd93348c199 (patch) | |
tree | a4e6676a45c549164b07576a14790b2a8ecc8d70 /src/shutdown.h | |
parent | e7f2f77756d33c6be9c8998a575b263ff2d39270 (diff) |
util: Refactor SysErrorString logic
Deduplicate code and error checks by making sure `s` stays `nullptr`
in case of error. Return "Unknown error" instead of an empty string in
this case.
Diffstat (limited to 'src/shutdown.h')
0 files changed, 0 insertions, 0 deletions