Example #1
0
UTF16 WindowsError::getLastError()
{
	int iLastError = GetLastError();
	return codeToString(iLastError);
}
std::string codeToString(RAAPIResult code) {
    return code.state==IS_CURL_ERROR ? std::string(curl_easy_strerror(code.curlErr)) : codeToString(code.state);
}