diff --git a/include/sqlConnection.h b/include/sqlConnection.h index 64d69c0..0699d2a 100644 --- a/include/sqlConnection.h +++ b/include/sqlConnection.h @@ -149,7 +149,7 @@ public: mysql_free_result(mysql_result); } - return really_result; + return std::unexpected(get_error_msg()); } bool Execute(std::string_view command){