mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Fix some log messages
This commit is contained in:
parent
434a88c503
commit
02941bacfb
2
file.cc
2
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 ):
|
||||
|
|
Loading…
Reference in a new issue