From 02941bacfb102e8b32011787fa039759a79d44cc Mon Sep 17 00:00:00 2001 From: Abs62 Date: Sun, 2 Jul 2017 16:40:42 +0300 Subject: [PATCH] Fix some log messages --- file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.cc b/file.cc index 0e451a6e..571463e0 100644 --- a/file.cc +++ b/file.cc @@ -107,7 +107,7 @@ void Class::open( char const * filename, char const * mode ) throw( exCantOpen ) f.setFileName( FsEncoding::decode( filename ) ); if ( !f.open( openMode ) ) - throw exCantOpen( std::string( filename ) + ": " + strerror( errno ) ); + throw exCantOpen( std::string( filename ) + ": " + f.errorString().toUtf8().data() ); } Class::Class( char const * filename, char const * mode ) throw( exCantOpen ):