summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-07-29 23:18:43 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-07-29 23:18:43 +0200
commite558f9170096e2e397f18d13b75d8facf02e10eb (patch)
tree3f9f1761de2bcbbd6f6955e7ff1e656d4fe325b2 /src
parent42afcc1aabf26d6e9f3ae231082014698f50154d (diff)
fix some invalid show_warning invocations
Diffstat (limited to 'src')
-rw-r--r--src/core/libs/lib-ui.sh12
-rw-r--r--src/core/procedures/automatic2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh
index c02b994..113e66d 100644
--- a/src/core/libs/lib-ui.sh
+++ b/src/core/libs/lib-ui.sh
@@ -358,14 +358,14 @@ _dia_ask_number ()
ANSWER_NUMBER=`cat $ANSWER`
if [[ $ANSWER_NUMBER = *[^0-9]* ]] #TODO: handle exit state
then
- show_warning "$ANSWER_NUMBER is not a number! try again."
+ show_warning 'Invalid number input' "$ANSWER_NUMBER is not a number! try again."
else
if [ -n "$3" -a $3 != '0' -a $ANSWER_NUMBER -gt $3 ]
then
- show_warning "$ANSWER_NUMBER is bigger then the maximum,$3! try again."
+ show_warning 'Invalid number input' "$ANSWER_NUMBER is bigger then the maximum,$3! try again."
elif [ -n "$2" -a $ANSWER_NUMBER -lt $2 ]
then
- show_warning "$ANSWER_NUMBER is smaller then the minimum,$2! try again."
+ show_warning 'Invalid number input' "$ANSWER_NUMBER is smaller then the minimum,$2! try again."
else
break
fi
@@ -514,14 +514,14 @@ _cli_ask_number ()
read ANSWER_NUMBER
if [[ $ANSWER_NUMBER = *[^0-9]* ]]
then
- show_warning "$ANSWER_NUMBER is not a number! try again."
+ show_warning 'Invalid number input' "$ANSWER_NUMBER is not a number! try again."
else
if [ -n "$3" -a $3 != '0' -a $ANSWER_NUMBER -gt $3 ]
then
- show_warning "$ANSWER_NUMBER is bigger then the maximum,$3! try again."
+ show_warning 'Invalid number input' "$ANSWER_NUMBER is bigger then the maximum,$3! try again."
elif [ -n "$2" -a $ANSWER_NUMBER -lt $2 ]
then
- show_warning "$ANSWER_NUMBER is smaller then the minimum,$2! try again."
+ show_warning 'Invalid number input' "$ANSWER_NUMBER is smaller then the minimum,$2! try again."
else
break
fi
diff --git a/src/core/procedures/automatic b/src/core/procedures/automatic
index 7eeb70a..6c82e6a 100644
--- a/src/core/procedures/automatic
+++ b/src/core/procedures/automatic
@@ -86,7 +86,7 @@ worker_prepare_disks ()
process_disks || die_error "Could not process_disks"
if ! process_filesystems
then
- show_warning "Could not process_filesystems"
+ show_warning 'Disk processing' "Could not process_filesystems"
txt='also failed to execute properly'
rollback_filesystems && txt='ended successfully'
die_error "Something failed while processing the filesystem. A rollback was executed, which $txt"