This commit is contained in:
Mars 2025-05-05 12:54:03 -04:00
parent ccd20f5461
commit 8709ef9de9
Signed by: pupbrained
GPG key ID: 874E22DF2F9DFCB5
4 changed files with 330 additions and 203 deletions

View file

@ -99,6 +99,7 @@ namespace util {
: message(std::format("{}: {}", context, std::system_category().message(errno))), location(loc) {
using namespace matchit;
using enum DracErrorCode;
code = match(errno)(
is | EACCES = PermissionDenied,
is | ENOENT = NotFound,