diff --git a/common/params.cc b/common/params.cc index 63baa30315..e510b60160 100644 --- a/common/params.cc +++ b/common/params.cc @@ -64,7 +64,7 @@ bool create_params_path(const std::string ¶m_path, const std::string &key_pa std::string ensure_params_path(const std::string &prefix, const std::string &path = {}) { std::string params_path = path.empty() ? Path::params() : path; if (!create_params_path(params_path, params_path + prefix)) { - throw std::runtime_error(util::string_format("Failed to ensure params path, errno=%d", errno)); + throw std::runtime_error(util::string_format("Failed to ensure params path, errno=%d, path=%s", errno, params_path.c_str())); } return params_path; } diff --git a/common/params_pyx.pyx b/common/params_pyx.pyx index abb3199d05..cc6bd287a6 100644 --- a/common/params_pyx.pyx +++ b/common/params_pyx.pyx @@ -14,7 +14,7 @@ cdef extern from "common/params.h": ALL cdef cppclass c_Params "Params": - c_Params(string) nogil + c_Params(string) nogil except + string get(string, bool) nogil bool getBool(string, bool) nogil int remove(string) nogil