mirror of
https://github.com/mii443/qemu.git
synced 2025-12-13 13:58:47 +00:00
tests: improve error message when saving TLS PSK file fails
Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20220310171821.3724080-3-berrange@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
committed by
Dr. David Alan Gilbert
parent
28298069af
commit
a17ec44dba
@@ -30,7 +30,7 @@ void test_tls_psk_init(const char *pskfile)
|
||||
|
||||
fp = fopen(pskfile, "w");
|
||||
if (fp == NULL) {
|
||||
g_critical("Failed to create pskfile %s", pskfile);
|
||||
g_critical("Failed to create pskfile %s: %s", pskfile, strerror(errno));
|
||||
abort();
|
||||
}
|
||||
/* Don't do this in real applications! Use psktool. */
|
||||
|
||||
Reference in New Issue
Block a user