fix error messages
authorDr. Stephen Henson <steve@openssl.org>
Sat, 17 Nov 2012 15:22:50 +0000 (15:22 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 17 Nov 2012 15:22:50 +0000 (15:22 +0000)
apps/s_cb.c

index 630321bc4ccb4be85ad4c8d272a88757b0d49aff..58d0da8e97a4e6822c916e935ac6b5a0552c0dd3 100644 (file)
@@ -1561,14 +1561,15 @@ int args_ssl(char ***pargs, int *pargc, SSL_CONF_CTX *cctx,
        /* see if missing argument error */
        if (rv == -3)
                {
        /* see if missing argument error */
        if (rv == -3)
                {
-               BIO_printf(err, "-%s needs an argument\n", arg);
+               BIO_printf(err, "%s needs an argument\n", arg);
                *badarg = 1;
                goto end;
                }
        /* Check for some other error */
        if (rv < 0)
                {
                *badarg = 1;
                goto end;
                }
        /* Check for some other error */
        if (rv < 0)
                {
-               BIO_printf(err, "-%s %s: failed.\n", arg, argn);
+               BIO_printf(err, "Error with command: \"%s %s\"\n",
+                                               arg, argn ? argn : "");
                *badarg = 1;
                goto end;
                }
                *badarg = 1;
                goto end;
                }