mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +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 ) );
|
f.setFileName( FsEncoding::decode( filename ) );
|
||||||
|
|
||||||
if ( !f.open( openMode ) )
|
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 ):
|
Class::Class( char const * filename, char const * mode ) throw( exCantOpen ):
|
||||||
|
|
Loading…
Reference in a new issue