differentiating and improving the two test methods
authorChris Koeritz <fred@gruntose.com>
Wed, 8 Nov 2017 03:03:01 +0000 (22:03 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 8 Nov 2017 03:03:01 +0000 (22:03 -0500)
scripts/core/functions.sh

index e70d6e57a8b65d0b92418609ad0c0d759e166bfc..c750fff245ab634988f197d9393c067ee5462f1a 100644 (file)
@@ -124,7 +124,7 @@ if [ -z "$skip_all" ]; then
   function test_or_fail()
   {
     if [ $? -ne 0 ]; then
-      echo -e "\n\nfailed on: $*"
+      echo -e "\n\naction failed: $*\n\nExiting script..."
       error_sound
       exit 1
     fi
@@ -134,7 +134,7 @@ if [ -z "$skip_all" ]; then
   function test_or_continue()
   {
     if [ $? -ne 0 ]; then
-      echo -e "\n\nfailed on: $*"
+      echo -e "\n\nerror occurred: $*\n\nContinuing script..."
       error_sound
     fi
   }