0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4010: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more error messages to errors.h.
This commit is contained in:
Bram Moolenaar
2022-01-05 17:49:15 +00:00
parent d3a117814d
commit 9d00e4a814
31 changed files with 200 additions and 87 deletions

View File

@@ -5850,13 +5850,13 @@ run_eval(const char *cmd, typval_T *rettv
{
if (PyErr_Occurred() && !msg_silent)
PyErr_PrintEx(0);
emsg(_("E858: Eval did not return a valid python object"));
emsg(_(e_eval_did_not_return_valid_python_object));
}
}
else
{
if (ConvertFromPyObject(run_ret, rettv) == -1)
emsg(_("E859: Failed to convert returned python object to a Vim value"));
emsg(_(e_failed_to_convert_returned_python_object_to_vim_value));
Py_DECREF(run_ret);
}
PyErr_Clear();