diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-08-17 18:47:22 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-08-17 18:47:22 +0000 |
commit | ed3f374e959ac4a753ae026af2765ffa7cdc9cda (patch) | |
tree | 5491cbf89c6a2b771179ad4c3785800eca2a23bd /lib/sbin/CSTUtils.pl | |
parent | af55907ef8d1b0e36acce8831387171f0bacc1c9 (diff) |
Only print error message header if there are warnings/errors.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3834 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/CSTUtils.pl')
-rw-r--r-- | lib/sbin/CSTUtils.pl | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/sbin/CSTUtils.pl b/lib/sbin/CSTUtils.pl index 6c02d06d..a5171a00 100644 --- a/lib/sbin/CSTUtils.pl +++ b/lib/sbin/CSTUtils.pl @@ -76,11 +76,14 @@ sub CST_error sub CST_PrintErrors { - print "\n\n------------------------------------------------------\n"; - print "Warnings were generated during execution of the CST\n"; - print "------------------------------------------------------\n\n"; - print "$error_string"; - print "------------------------------------------------------\n\n"; + if($error_string) + { + print "\n\n------------------------------------------------------\n"; + print "Warnings were generated during execution of the CST\n"; + print "------------------------------------------------------\n\n"; + print "$error_string"; + print "------------------------------------------------------\n\n"; + } } |