user_error(): Exit with known error directly to cleanup()
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
7684b975ca
commit
232a28d959
@ -611,7 +611,8 @@ EasyRSA version $EASYRSA_version
|
||||
Error
|
||||
-----
|
||||
$1"
|
||||
exit 1
|
||||
easyrsa_exit_with_error=1
|
||||
cleanup
|
||||
} # => user_error()
|
||||
|
||||
# verbose information
|
||||
@ -885,6 +886,7 @@ Temporary session not preserved."
|
||||
# -> confirm(): aborted
|
||||
# -> verify_cert(): verify failed --batch mode
|
||||
# -> check_serial_unique(): not unique --batch mode
|
||||
# -> user_error(): User errors but not die()
|
||||
if [ "$easyrsa_exit_with_error" ]; then
|
||||
verbose "Exit: Known errors = true"
|
||||
exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user