From 01891e056713ed6e5d5cb737bcf8f518f68353bb Mon Sep 17 00:00:00 2001 From: Chase Geigle Date: Thu, 20 Sep 2018 15:22:23 -0500 Subject: [PATCH] refactor(plugin): Add missing braces to if statement. --- src/utils/plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/plugin.cpp b/src/utils/plugin.cpp index 35b3ec85..d3b8de84 100644 --- a/src/utils/plugin.cpp +++ b/src/utils/plugin.cpp @@ -21,8 +21,9 @@ std::vector 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() {