Improve error message when invalid --state is used.
This commit is contained in:
parent
5b8ae33b4e
commit
193b1780de
2 changed files with 4 additions and 2 deletions
|
@ -55,7 +55,8 @@ in
|
|||
printf 'delete authuser %s on %s\n' "${login}" "${server}" >>"${__messages_out}"
|
||||
;;
|
||||
(*)
|
||||
printf 'Invalid --state: %s' "${state_should}" >&2
|
||||
printf 'Invalid --state: %s.\n' "${state_should}" >&2
|
||||
printf 'Acceptable values are: present, absent.\n' >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -47,7 +47,8 @@ in
|
|||
mode=0
|
||||
;;
|
||||
(*)
|
||||
printf 'Invalid --state given: %s\n' "$state_should" >&2
|
||||
printf 'Invalid --state: %s.\n' "$state_should" >&2
|
||||
printf 'Acceptable values are: present, absent.\n' >&2
|
||||
exit 1
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in a new issue