Subject: integrate 'quotient by zero' error message
From: Richard Fateman
Date: Sun, 30 Oct 2011 16:01:41 -0700
On 10/30/2011 3:39 PM, Stavros Macrakis wrote:
> . Even better if every instance of every error had a unique ID, so
> that when users report errors, we can be sure we're seeing the same
> error they're seeing, e.g. "Internal inconsistency detected,
> calculation aborted: quotient by zero at PQ1234".
well, a reference to the code will not be terribly informative. I think
the message originates in one of 2 places.
ratinvert which computes 1/q and
ratquotient which computes p/q.
a reference to the program counter won't be of much help.
a reference to the denominator won't help. It is zero!
For detecting the cause of the error, a programmer might get some info..
a reference to the numerator might supply some info.
a backtrace might help.
RJF