patch 8.2.4010: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/if_py_both.h b/src/if_py_both.h
index b8716fa..ab495a8 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -5850,13 +5850,13 @@
{
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();