Better log message for resetting last error state.
This commit is contained in:
parent
02a65840e8
commit
6f9cb89c5d
@ -861,10 +861,14 @@ const char* freerdp_get_last_error_string(UINT32 code)
|
||||
void freerdp_set_last_error(rdpContext* context, UINT32 lastError)
|
||||
{
|
||||
if (lastError)
|
||||
WLog_ERR(TAG, "freerdp_set_last_error %s [0x%08"PRIX32"]",
|
||||
WLog_ERR(TAG, "%s %s [0x%08"PRIX32"]", __FUNCTION__,
|
||||
freerdp_get_last_error_name(lastError), lastError);
|
||||
|
||||
if (context->LastError != 0)
|
||||
if (lastError == FREERDP_ERROR_SUCCESS)
|
||||
{
|
||||
WLog_INFO(TAG, "%s resetting error state", __FUNCTION__);
|
||||
}
|
||||
else if (context->LastError != 0)
|
||||
{
|
||||
WLog_ERR(TAG, "TODO: Trying to set error code %s, but %s already set!",
|
||||
freerdp_get_last_error_name(lastError),
|
||||
|
Loading…
Reference in New Issue
Block a user