1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2025-04-14 17:33:17 -04:00

refactor(plugin): Add missing braces to if statement.

This commit is contained in:
Chase Geigle 2018-09-20 15:22:23 -05:00
parent d8687e2a3a
commit 01891e0567
No known key found for this signature in database
GPG key ID: 1020EF3A7626F7DC

View file

@ -21,8 +21,9 @@ std::vector<const char*> plugin_names = {
plugin_handle::plugin_handle(const char* libname) {
m_handle = ::dlopen(libname, RTLD_NOW | RTLD_GLOBAL);
if (!m_handle)
if (!m_handle) {
throw application_error(::dlerror());
}
}
plugin_handle::~plugin_handle() {