I want to abort some scripts under certain error conditions, without printing to STDERR.
I have script A requiring script B.
Script A calls parseFile() defined in script B.
I would like parseFile to have the following functionality
unforatunately, even without passing in a string to die, it will print "died at line xxx" to STDERR!
Is there any thing else I could do to abort more gracefully please? As I have by own logging facility already.
Ta
I have script A requiring script B.
Script A calls parseFile() defined in script B.
I would like parseFile to have the following functionality
Code:
if (error==1)
{
logError(....); #defined in logging.pl (required by script B)
die withouting printing to STDERR
}
unforatunately, even without passing in a string to die, it will print "died at line xxx" to STDERR!
Is there any thing else I could do to abort more gracefully please? As I have by own logging facility already.
Ta