Commit 1f6d571c authored by Rolf Bork's avatar Rolf Bork
Browse files

Added total error count and max name length to error message printout.


git-svn-id: https://redoubt.ligo-wa.caltech.edu/svn/advLigoRTS/branches/branch-2.2@2445 6dcd42c9-f523-4c6d-aada-af552506706e
parent 1bab4ffa
......@@ -29,6 +29,7 @@ if (-e $fileName) {
$tooLong = 0;
$maxPartNameLength = 34;
$maxLength = 0;
print "\n";
#
......@@ -47,6 +48,10 @@ if (-e $fileName) {
if (length($partName) > $maxPartNameLength) {
$tooLong++;
if(length($partName) > $maxLength)
{
$maxLength = length($partName);
}
print "\n***ERROR: Part name too long: $partName\n";
}
}
......@@ -57,7 +62,7 @@ if (-e $fileName) {
# Abort if any part names were found to be too long.
#
if ($tooLong) {
die"\n***ERROR - Too long part name(s) - ABORTING\n";
die"\n***ERROR - Too long part name(s) total $tooLong errors with max name length of $maxLength- ABORTING\n";
}
}
else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment