[plt-scheme] Is there a way to do this?

From: narutocanada at gmail.com (narutocanada at gmail.com)
Date: Sun Sep 14 09:59:45 EDT 2008

hi

Is there a way to find out during the interpretation of a program that
any error was encountered, either syntactical or run time error--
currently mzscheme always return 0 at the shell level:

cat any.sc | mzscheme ; echo $?
# always 0

Providing a user defined error function only catches certain error but
not syntactical or other run time error-- like "identifier not found".
I need a way to catch any error and exit with any value other then 0
for batch processing large number of test files.

Thanks.


Posted on the users mailing list.