diff --git a/src/BSQL/API.cpp b/src/BSQL/API.cpp index bf1e5c7..189fe41 100644 --- a/src/BSQL/API.cpp +++ b/src/BSQL/API.cpp @@ -67,7 +67,7 @@ extern "C" { return "Operation identifier does not exist!"; if (!operation->IsComplete(true)) return "Operation is not complete!"; - returnValueHolder = code ? operation->GetError() : operation->GetErrorCode(); + returnValueHolder = code ? operation->GetErrorCode() : operation->GetError(); return returnValueHolder.c_str(); } catch (std::bad_alloc&) {