summaryrefslogtreecommitdiffstats
path: root/util/mkerr.pl
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2007-04-05 17:03:09 +0000
committerBen Laurie <ben@openssl.org>2007-04-05 17:03:09 +0000
commitf3d2a9db09cd7df736229710cb4c75f8906eeb4e (patch)
tree1bdacea6c16059987184e3d9b2aed101db8a2236 /util/mkerr.pl
parent8bbf6ac01056f6e5bba5fd5950fc0356f31cef5b (diff)
Errors should actually be errors.
Diffstat (limited to 'util/mkerr.pl')
-rw-r--r--util/mkerr.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/mkerr.pl b/util/mkerr.pl
index c8f305c4ea..66b8df35b5 100644
--- a/util/mkerr.pl
+++ b/util/mkerr.pl
@@ -13,6 +13,8 @@ my $staticloader = "";
my $pack_errcode;
my $load_errcode;
+my $errcount;
+
while (@ARGV) {
my $arg = $ARGV[0];
if($arg eq "-conf") {
@@ -195,6 +197,7 @@ while (($hdr, $lib) = each %libinc)
$rcodes{$name} = $code;
if ($rassigned{$lib} =~ /:$code:/) {
print STDERR "!! ERROR: $lib reason code $code assigned twice\n";
+ ++$errcount;
}
$rassigned{$lib} .= "$code:";
if(!(exists $rextra{$name}) &&
@@ -204,6 +207,7 @@ while (($hdr, $lib) = each %libinc)
} else {
if ($fassigned{$lib} =~ /:$code:/) {
print STDERR "!! ERROR: $lib function code $code assigned twice\n";
+ ++$errcount;
}
$fassigned{$lib} .= "$code:";
if($code > $fmax{$lib}) {
@@ -234,6 +238,7 @@ while (($hdr, $lib) = each %libinc)
if ($rmax{$lib} >= 1000) {
print STDERR "!! ERROR: SSL error codes 1000+ are reserved for alerts.\n";
print STDERR "!! Any new alerts must be added to $config.\n";
+ ++$errcount;
print STDERR "\n";
}
}
@@ -723,3 +728,9 @@ if($debug && defined(@runref) ) {
print STDERR "$_\n";
}
}
+
+if($errcount) {
+ print STDERR "There were errors, failing...\n\n";
+ exit $errcount;
+}
+