Araq/Nimrod — Issue #96: assertions and tracebacks do not cooperate well
Author: dom96
Created: 2012-01-21 15:42:13+00:00
State: open

The following code gives an odd traceback, which makes debugging quite hard:

```nimrod

proc t(): bool =
result = false
var s: seq[int] = @[0,1,2,3,4,5,6,7,8,9]
for i in 0..10:
echo(s[i+1])

while true:
try:
assert t()
except EOS:
echo("Blah")
```

The `try` ... `except` statement seems to hide the information even more, because removing it seems to make the traceback a bit more understandable. The traceback that I get with the code above is:

Traceback (most recent call last)
system.nim(2100) crappytb
Error: unhandled exception: index out of bounds [EInvalidIndex]