summaryrefslogtreecommitdiff
path: root/lib/nes/common/status.hh
diff options
context:
space:
mode:
authorHannes Schulze <hannes.hs.schulze@fau.de>2025-05-02 15:16:35 +0200
committerHannes Schulze <hannes.hs.schulze@fau.de>2025-05-02 15:16:35 +0200
commit91c9b3addf5f3db972fd28752855eda811221afe (patch)
treee3f23bc153e66afa0481430c9c828f6d7a28859b /lib/nes/common/status.hh
parent24c521f5a4b9f2e1a98668e9d9f7b19b4c9a9bd7 (diff)
different action depending on file extension
Diffstat (limited to 'lib/nes/common/status.hh')
-rw-r--r--lib/nes/common/status.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/nes/common/status.hh b/lib/nes/common/status.hh
index 4b23b60..54c210f 100644
--- a/lib/nes/common/status.hh
+++ b/lib/nes/common/status.hh
@@ -13,6 +13,7 @@ namespace nes
error_buffer_overflow,
error_invalid_path,
error_invalid_format_string,
+ error_unknown_file_type,
};
constexpr auto to_string(status const status) -> char const*
@@ -35,8 +36,10 @@ namespace nes
return "Invalid path";
case status::error_invalid_format_string:
return "Invalid format string";
+ case status::error_unknown_file_type:
+ return "Unknown file type";
}
return "(invalid)";
}
-} // namespace nes \ No newline at end of file
+} // namespace nes