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

Print exception type for py file exceptions, and perhaps traceback #59

Closed
jsbain opened this issue Jan 10, 2015 · 1 comment
Closed

Comments

@jsbain
Copy link
Contributor

jsbain commented Jan 10, 2015

E.g. Something like

    except Exception as e:
        err_msg = '%s: %s (%s)\n' % (str(e.type), str(e), sys.exc_value)

In exec_py_file()

Possibly, it might be good to also print the traceback, at least one or two levels.

@ywangd
Copy link
Owner

ywangd commented Jan 10, 2015

@jsbain
Exception message should be more useful now by showing repr(e).
Also added a config option, py_traceback to display full traceback. Default is 0. You can add this option to .stash_config and turn it on by setting it to 1, i.e. py_traceback=1.
See 1ca6e4f

Thanks for the suggestions!

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

No branches or pull requests

2 participants