mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
fix error messages
This commit is contained in:
parent
5d2e07f182
commit
9fc81acae6
@ -1561,14 +1561,15 @@ int args_ssl(char ***pargs, int *pargc, SSL_CONF_CTX *cctx,
|
||||
/* 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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user