From: Mikko Rasa Date: Thu, 27 Sep 2012 20:45:34 +0000 (+0300) Subject: Don't report M_RDWR as "generic" X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=426a1f61095aff13025b707e89105ad1e4570616;p=libs%2Fcore.git Don't report M_RDWR as "generic" --- 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