mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
Slob: A little more informative log message
This commit is contained in:
parent
91bddcc25a
commit
109e66eb67
3
slob.cc
3
slob.cc
|
@ -56,6 +56,7 @@ DEF_EX_STR( exCantReadFile, "Can't read file", Dictionary::Ex )
|
|||
DEF_EX_STR( exCantDecodeFile, "Can't decode file", Dictionary::Ex )
|
||||
DEF_EX_STR( exNoCodecFound, "No text codec found", Dictionary::Ex )
|
||||
DEF_EX( exUserAbort, "User abort", Dictionary::Ex )
|
||||
DEF_EX( exNoResource, "No resource found", Dictionary::Ex )
|
||||
|
||||
#pragma pack( push, 1 )
|
||||
|
||||
|
@ -1345,7 +1346,7 @@ void SlobResourceRequest::run()
|
|||
string resource;
|
||||
dict.loadResource( resourceName, resource );
|
||||
if( resource.empty() )
|
||||
throw File::Ex();
|
||||
throw exNoResource();
|
||||
|
||||
if( Filetype::isNameOfCSS( resourceName ) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue