Skip to content

Commit

Permalink
tests: improve error message when saving TLS PSK file fails
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
berrange authored and dagrh committed Apr 21, 2022
1 parent 2829806 commit a17ec44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/crypto-tls-psk-helpers.c
Expand Up @@ -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. */
Expand Down

0 comments on commit a17ec44

Please sign in to comment.