diff --git a/repertory/repertory/src/ui/handlers.cpp b/repertory/repertory/src/ui/handlers.cpp index 40dbd9a7..4e9412da 100644 --- a/repertory/repertory/src/ui/handlers.cpp +++ b/repertory/repertory/src/ui/handlers.cpp @@ -37,6 +37,7 @@ #include #include #include +#include namespace { [[nodiscard]] auto decrypt(std::string_view data, std::string_view password) @@ -556,7 +557,7 @@ void handlers::handle_get_test(const httplib::Request &req, } utils::error::raise_error( - function_name, e, + function_name, utils::get_last_error_code(); fmt::format("failed to remove data directory|{}", data_dir)); }