]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
network-functions.pl: Better exit for assertion errors
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 24 Jun 2015 16:36:26 +0000 (18:36 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 24 Jun 2015 16:36:26 +0000 (18:36 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/network-functions.pl

index 1cd2814ec1b0c32f3592b36a377ca15060dab6b2..5cbf8fa93f97674e23010e081ce3375334350d51 100644 (file)
@@ -283,8 +283,7 @@ sub assert($) {
                return;
        }
 
-       print "ASSERTION ERROR";
-       exit(1);
+       die "ASSERTION ERROR";
 }
 
 sub testsuite() {