X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsptps_keypair.c;h=f66a77111b3fdc10ade81619c5ced6007e619cfd;hb=e57daac63b6f703af8e7c8209ef61a4d3b2180c3;hp=63f396a8653c364c52d506ae3550ab652ffa173c;hpb=49e3baec20ddad9cc297c3eeb1d13f0e421f69c8;p=tinc diff --git a/src/sptps_keypair.c b/src/sptps_keypair.c index 63f396a8..f66a7711 100644 --- a/src/sptps_keypair.c +++ b/src/sptps_keypair.c @@ -83,7 +83,7 @@ int main(int argc, char *argv[]) { ecdsa_write_pem_private_key(key, fp); fclose(fp); } else { - fprintf(stderr, "Could not open '%s' for writing: %s\n", strerror(errno)); + fprintf(stderr, "Could not open '%s' for writing: %s\n", argv[1], strerror(errno)); return 1; } @@ -92,7 +92,7 @@ int main(int argc, char *argv[]) { ecdsa_write_pem_public_key(key, fp); fclose(fp); } else { - fprintf(stderr, "Could not open '%s' for writing: %s\n", strerror(errno)); + fprintf(stderr, "Could not open '%s' for writing: %s\n", argv[2], strerror(errno)); return 1; }