diff --git a/include/sqlConnection.h b/include/sqlConnection.h index 40780a3..e0378ee 100644 --- a/include/sqlConnection.h +++ b/include/sqlConnection.h @@ -147,9 +147,10 @@ public: } mysql_free_result(mysql_result); + return really_result; } - return really_result; + return std::unexpected(get_error_msg()); } std::expected Execute(std::string_view command){