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:
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. */
|
||||
|
Loading…
Reference in New Issue
Block a user