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

Have dispatch() track the procedure name, use in errors #92

Open
5 tasks
inexorabletash opened this issue Oct 26, 2016 · 1 comment
Open
5 tasks

Have dispatch() track the procedure name, use in errors #92

inexorabletash opened this issue Oct 26, 2016 · 1 comment

Comments

@inexorabletash
Copy link
Owner

  • wrap dispatch() method body in a try/finally
  • push/pop the target name on a stack
  • add internal currentProc() method
  • add hook to error message formatting to get current proc name
  • use in all errors rather than hardcoding method name
@inexorabletash
Copy link
Owner Author

Tricker due to async execution - need to use promiseFinally

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