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 ):