Skip to content
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

Improve error tracing in Ruby functions #32

Open
samnung opened this issue Mar 22, 2022 · 0 comments
Open

Improve error tracing in Ruby functions #32

samnung opened this issue Mar 22, 2022 · 0 comments

Comments

@samnung
Copy link
Member

samnung commented Mar 22, 2022

Given this example of files:

abc.bade

- def raise_some_error1
-   raise_some_error2
- end
-
- def raise_some_error2
-   raise_some_error3
- end
-
- def raise_some_error3
-   raise StandardError
- end

root.bade

import 'abc.bade'
= raise_some_error1

it will produce error with this backtrace:

template backtrace:
  root.bade:25:in `raise_some_error3'
  root.bade:18:in `raise_some_error2'
  root.bade:11:in `raise_some_error1'
  root.bade:10:in `<top>'

Which is wrong.

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

No branches or pull requests

1 participant