Mercurial > vim
comparison src/if_py_both.h @ 26962:85866e069c24 v8.2.4010
patch 8.2.4010: error messages are spread out
Commit: https://github.com/vim/vim/commit/9d00e4a8146862c17ed429dc6b1b43349acb2b5f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 5 17:49:15 2022 +0000
patch 8.2.4010: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 05 Jan 2022 19:00:06 +0100 |
parents | d02d40f0261c |
children | ac75c145f0a9 |
comparison
equal
deleted
inserted
replaced
26961:33c0467b3c52 | 26962:85866e069c24 |
---|---|
5848 } | 5848 } |
5849 else | 5849 else |
5850 { | 5850 { |
5851 if (PyErr_Occurred() && !msg_silent) | 5851 if (PyErr_Occurred() && !msg_silent) |
5852 PyErr_PrintEx(0); | 5852 PyErr_PrintEx(0); |
5853 emsg(_("E858: Eval did not return a valid python object")); | 5853 emsg(_(e_eval_did_not_return_valid_python_object)); |
5854 } | 5854 } |
5855 } | 5855 } |
5856 else | 5856 else |
5857 { | 5857 { |
5858 if (ConvertFromPyObject(run_ret, rettv) == -1) | 5858 if (ConvertFromPyObject(run_ret, rettv) == -1) |
5859 emsg(_("E859: Failed to convert returned python object to a Vim value")); | 5859 emsg(_(e_failed_to_convert_returned_python_object_to_vim_value)); |
5860 Py_DECREF(run_ret); | 5860 Py_DECREF(run_ret); |
5861 } | 5861 } |
5862 PyErr_Clear(); | 5862 PyErr_Clear(); |
5863 } | 5863 } |
5864 | 5864 |