mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-02 14:24:14 +08:00
[core,freerdp] log state if preconnect fails
This commit is contained in:
parent
234f0f2e5a
commit
2c461d0ea9
@ -159,7 +159,8 @@ static int freerdp_connect_begin(freerdp* instance)
|
|||||||
WINPR_ASSERT(context);
|
WINPR_ASSERT(context);
|
||||||
freerdp_set_last_error_if_not(context, FREERDP_ERROR_PRE_CONNECT_FAILED);
|
freerdp_set_last_error_if_not(context, FREERDP_ERROR_PRE_CONNECT_FAILED);
|
||||||
|
|
||||||
WLog_Print(context->log, WLOG_ERROR, "freerdp_pre_connect failed");
|
WLog_Print(context->log, WLOG_ERROR, "freerdp_pre_connect failed: %s",
|
||||||
|
rdp_client_connection_state_string(instance->ConnectionCallbackState));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user