You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That not bad as a clue, but it'd be great to put the line number of the decoration in there. I can scrape some from context.args, if there are any; more from body, but I can't get the filename anywhere.
Possible fixes:
Pass the filename and line number in Decorator.Decorate.Context
Pass the full __CALLER__ in Decorator.Decorate.Context
try around calling the decorator; rescue; insert the decorator into the stack trace; reraise
I'm happy to raise a PR for either, or some way that you think would be cleaner; what would you feel OK merging?
The text was updated successfully, but these errors were encountered:
I'm raising because my decorator arguments are bad, and the stack trace isn't giving as much help as I like to provide:
That not bad as a clue, but it'd be great to put the line number of the decoration in there. I can scrape some from
context.args
, if there are any; more frombody
, but I can't get the filename anywhere.Possible fixes:
Pass the filename and line number in
Decorator.Decorate.Context
Pass the full
__CALLER__
inDecorator.Decorate.Context
try
around calling the decorator;rescue
; insert the decorator into the stack trace;reraise
I'm happy to raise a PR for either, or some way that you think would be cleaner; what would you feel OK merging?
The text was updated successfully, but these errors were encountered: