aya-lang/aya

Add more helpful bug report info

nick-paul opened this issue · 0 comments

Something like:

aya> :2r 0 *
An unhandled exception occurred. If this is a bug, please submit an issue to
https://github.com/nick-paul/aya-lang/issues/ with the error message below.
=== [ Stacktrace ] ===
java.lang.ArithmeticException: / by zero
at aya.obj.number.NumberMath.gcd(NumberMath.java:68)
at aya.obj.number.RationalNum.simplify(RationalNum.java:113)
at aya.obj.number.RationalNum.(RationalNum.java:109)
at aya.obj.number.Num.mul(Num.java:135)
at aya.entities.operations.OP_Times.execute(Ops.java:520)
at aya.obj.block.Block.eval(Block.java:120)
at aya.Aya.run(Aya.java:233)
at aya.Aya.run(Aya.java:209)
at aya.Aya.run(Aya.java:80)

stack:

just before: