From 426a1f61095aff13025b707e89105ad1e4570616 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 27 Sep 2012 23:45:34 +0300 Subject: [PATCH] Don't report M_RDWR as "generic" --- source/io/mode.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/io/mode.cpp b/source/io/mode.cpp index 71d956b..c945d02 100644 --- a/source/io/mode.cpp +++ b/source/io/mode.cpp @@ -6,7 +6,10 @@ namespace Msp { namespace IO { invalid_access::invalid_access(Mode m): - logic_error(m==M_READ ? "read" : m==M_WRITE ? "write" : "generic") + logic_error(m==M_READ ? "read" : + m==M_WRITE ? "write" : + m==M_RDWR ? "read-write" : + "generic") { } } // namespace IO -- 2.43.0