libs: made error message clearer and more consistent

This commit is contained in:
levasseur
2021-12-13 18:49:03 +01:00
parent bbd35ee3c6
commit d9af921417
6 changed files with 17 additions and 12 deletions

View File

@@ -16,7 +16,7 @@ read_commandline()
{
syntax_error()
{
prnt E "Error while analysing command line, please check your parameters."
prnt E "Error while analysing command line parameters."
die 1 --force
}
@@ -52,9 +52,9 @@ read_commandline()
if [[ -s $STAGE_FILE ]]; then
export RESUME=true
else
prnt E "The state file doesn't exists or is empty!"
prnt E "The status file doesn't exists or is empty!"
prnt E "Without it, resuming is impossible."
die 1 --force
die 17 --force
fi
;;
"-R"|"--no-root-check")
@@ -102,7 +102,7 @@ read_commandline()
export NEW_LOGFILE=$opt
want_logfile=false
else
prnt E "It's impossible to specify several log files."
prnt E "Impossible to specify several log files."
die 1 --force
fi
elif [[ $want_conffile == true ]]; then