Skip to content

Commit 64bdd71

Browse files
eagleoflqjwengxt
andauthored
don't silently fail when loading shared library (#1089)
Co-authored-by: Weng Xuetian <wengxt@gmail.com>
1 parent 7536d60 commit 64bdd71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/fcitx/addonloader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ AddonInstance *SharedLibraryLoader::load(const AddonInfo &info,
4545
info.uniqueName(),
4646
std::make_unique<SharedLibraryFactory>(std::move(lib)));
4747
} catch (const std::exception &e) {
48+
FCITX_ERROR() << "Failed to initialize addon factory for addon "
49+
<< info.uniqueName() << ". Error: " << e.what();
4850
}
4951
break;
5052
}

0 commit comments

Comments
 (0)