[core,freerdp] log state if preconnect fails

This commit is contained in:
Armin Novak 2024-11-20 15:55:17 +01:00 committed by akallabeth
parent 234f0f2e5a
commit 2c461d0ea9
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -159,7 +159,8 @@ static int freerdp_connect_begin(freerdp* instance)
WINPR_ASSERT(context);
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;
}