libs: made error message clearer and more consistent
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user