From 91c9b3addf5f3db972fd28752855eda811221afe Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Fri, 2 May 2025 15:16:35 +0200 Subject: different action depending on file extension --- lib/nes/common/status.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/nes/common/status.hh') 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 -- cgit v1.3.1