From e2abec21c5d9794d22d4b0c0327d274c87a99c9f Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 14 Jan 2020 09:06:15 +0100 Subject: [PATCH] VimError: include throwpoint This is helpful information to have in case of errors. --- pythonx/jedi_vim.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pythonx/jedi_vim.py b/pythonx/jedi_vim.py index e03d082..666970f 100644 --- a/pythonx/jedi_vim.py +++ b/pythonx/jedi_vim.py @@ -67,7 +67,9 @@ class VimError(Exception): self.executing = executing def __str__(self): - return self.message + '; created by: ' + repr(self.executing) + return "{}; created by {!r} (in {})".format( + self.message, self.executing, self.throwpoint + ) def _catch_exception(string, is_eval):