diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-06-05 09:05:03 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-06-05 09:05:03 +0200 |
| commit | c1c317014002311874006f319b04121c88ef4672 (patch) | |
| tree | 0c577bd0d09fa66abd45b6585a9442480219d000 /cabinet/main.cpp | |
| parent | 81fa478a642b25715adecf27c283e6f15334d705 (diff) | |
| download | cabinet-c1c317014002311874006f319b04121c88ef4672.tar.xz cabinet-c1c317014002311874006f319b04121c88ef4672.zip | |
magic: improve error handling
Diffstat (limited to 'cabinet/main.cpp')
| -rw-r--r-- | cabinet/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cabinet/main.cpp b/cabinet/main.cpp index db2d43b..ff35d34 100644 --- a/cabinet/main.cpp +++ b/cabinet/main.cpp @@ -27,7 +27,7 @@ auto main(int argc, char ** argv) -> int auto mime_type = magic->process(fd); if (!mime_type) { - std::println(std::cerr, "Failed to determine file type: {}", mime_type.error()); + std::println(std::cerr, "Failed to determine file type: {}", mime_type.error().message()); return EXIT_FAILURE; } std::println("{}: {}", argv[1], mime_type.value()); |
