44 {
45 int bufferLength;
46 HAPI_GetStatusStringBufLength(nullptr, HAPI_STATUS_CALL_RESULT, HAPI_STATUSVERBOSITY_ERRORS, &bufferLength);
47
48 char* buffer = new char[bufferLength];
49 HAPI_GetStatusString(nullptr, HAPI_STATUS_CALL_RESULT, buffer, bufferLength);
50
51 std::string result(buffer);
52 delete[] buffer;
53
54 return result;
55 }