diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-18 15:02:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-18 15:02:25 +0200 |
commit | 7f3a28490abb7c495239fc438825e3d1aaafa76d (patch) | |
tree | 1a9c55ef4716279a37b8c837e64af844bd560b78 /src/if_py_both.h | |
parent | 6349e9411fd17f80c7aff9c678a8800647d34cfa (diff) | |
download | vim-git-7f3a28490abb7c495239fc438825e3d1aaafa76d.tar.gz |
patch 8.1.1346: error for Python exception does not show useful infov8.1.1346
Problem: Error for Python exception does not show useful info.
Solution: Show the last line instead of the first one. (Ben Jackson,
closes #4381)
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r-- | src/if_py_both.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index 4e1a42a3c..cc0450c13 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -412,6 +412,8 @@ write_output(OutputObject *self, PyObject *string) Py_BEGIN_ALLOW_THREADS Python_Lock_Vim(); + if (error) + emsg_severe = TRUE; writer((writefn)(error ? emsg : msg), (char_u *)str, len); Python_Release_Vim(); Py_END_ALLOW_THREADS |