Use the words "cannot read" rather than "cannot open"

as the code actually tests readability.
This commit is contained in:
Koichiro IWAO 2017-05-26 16:49:33 +09:00 committed by metalefty
parent 4f7969b562
commit a1b0344db5

View File

@ -272,7 +272,7 @@ xrdp_rdp_read_config(struct xrdp_client_info *client_info)
if (!g_file_readable(client_info->certificate))
{
log_message(LOG_LEVEL_ERROR, "Cannot open certificate file %s: %s",
log_message(LOG_LEVEL_ERROR, "Cannot read certificate file %s: %s",
client_info->certificate, g_get_strerror());
}
}
@ -302,7 +302,7 @@ xrdp_rdp_read_config(struct xrdp_client_info *client_info)
if (!g_file_readable(client_info->key_file))
{
log_message(LOG_LEVEL_ERROR, "Cannot open private key file %s: %s",
log_message(LOG_LEVEL_ERROR, "Cannot read private key file %s: %s",
client_info->key_file, g_get_strerror());
}
}