New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception cause is one line off #26

Closed
hakunin opened this Issue Nov 10, 2010 · 1 comment

Comments

Projects
None yet
2 participants
@hakunin

hakunin commented Nov 10, 2010

Raise on fith row / line.

michal@domov:~/mystuff/test$ cat exception.mirah 




raise 'On fifth row'

Run:

michal@domov:~/mystuff/test$ mirah exception.mirah 
NativeMethodAccessorImpl.java:-2:in `invoke0': java.lang.reflect.InvocationTargetException
      from NativeMethodAccessorImpl.java:39:in `invoke'
      from DelegatingMethodAccessorImpl.java:25:in `invoke'
      from Method.java:597:in `invoke'
      from NativeMethodAccessorImpl.java:-2:in `invoke0'
      from NativeMethodAccessorImpl.java:39:in `invoke'
      from DelegatingMethodAccessorImpl.java:25:in `invoke'
      from Method.java:597:in `invoke'
Caused by:

Trace says its on 6th row:

exception.mirah:6:in `main': java.lang.RuntimeException: On fifth row
      from NativeMethodAccessorImpl.java:-2:in `invoke0'
      from NativeMethodAccessorImpl.java:39:in `invoke'
      from DelegatingMethodAccessorImpl.java:25:in `invoke'
      from Method.java:597:in `invoke'
      from NativeMethodAccessorImpl.java:-2:in `invoke0'
      from NativeMethodAccessorImpl.java:39:in `invoke'
      from DelegatingMethodAccessorImpl.java:25:in `invoke'
      from Method.java:597:in `invoke'
      from JavaMethod.java:482:in `invokeDirectWithExceptionHandling'
      from JavaMethod.java:347:in `invokeDirect'
      from InstanceMethodInvoker.java:42:in `call'
      from InstanceMethodInvoker.java:63:in `call'
      from CachingCallSite.java:329:in `cacheAndCall'
      from CachingCallSite.java:188:in `call'
      from CallTwoArgNode.java:59:in `interpret'
@baroquebobcat

This comment has been minimized.

Show comment
Hide comment
@baroquebobcat

baroquebobcat Sep 11, 2011

Member

looks like this is fixed now. it says exception.mirah:5 ... for me.

Member

baroquebobcat commented Sep 11, 2011

looks like this is fixed now. it says exception.mirah:5 ... for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment