Fixed VerifyError and RuntimeError messages to be less dire. Also, don't exit

the program if an error occurs since it will be propagated to a Java caller as
an exception.
This commit is contained in:
fur@netscape.com
1999-01-29 05:23:06 +00:00
parent 32cbf2d3f1
commit bcaa2703dd

View File

@@ -77,13 +77,10 @@ NS_EXTERN void
verifyError(VerifyError::Cause cause)
{
#ifdef DEBUG
fprintf(stderr, "\n*** VERIFY ERROR *** [%d] %s\n", cause, verifyErrorString[cause]);
fprintf(stderr, "\n*** NOTE: Throwing verify error: %s\n", verifyErrorString[cause]);
#endif
#ifdef __GNUC__
exit(cause);
#endif
throw VerifyError(cause);
throw VerifyError(cause);
}
//
@@ -93,11 +90,8 @@ NS_EXTERN void
runtimeError(RuntimeError::Cause cause)
{
#ifdef DEBUG
fprintf(stderr, "\n*** RUNTIME ERROR *** [%d] %s\n", cause, runtimeErrorString[cause]);
fprintf(stderr, "\n*** NOTE: Throwing runtime error: %s\n", runtimeErrorString[cause]);
#endif
#ifdef __GNUC__
exit(cause);
#endif
throw RuntimeError(cause);
}