diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-05 20:24:39 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-05 20:24:39 +0000 |
commit | d82a47dd0493ee976aa3f15ecdc9aea7da6ad5bf (patch) | |
tree | 604109254c7057942fce5c1af26fdd1bc36c066f /src/if_py_both.h | |
parent | bb8cac56d9c398a2b546d9c81c15e8c3d8fd811e (diff) | |
download | vim-git-d82a47dd0493ee976aa3f15ecdc9aea7da6ad5bf.tar.gz |
patch 8.2.4012: error messages are spread outv8.2.4012
Problem: Error messages are spread out.
Solution: Move the last error messages to errors.h.
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r-- | src/if_py_both.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index ab495a821..128d12e87 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -13,8 +13,6 @@ * Common code for if_python.c and if_python3.c. */ -static char_u e_py_systemexit[] = "E880: Can't handle SystemExit of %s exception in vim"; - #if PY_VERSION_HEX < 0x02050000 typedef int Py_ssize_t; // Python 2.4 and earlier don't have this type. #endif @@ -5697,7 +5695,7 @@ run_cmd(const char *cmd, void *arg UNUSED } else if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_SystemExit)) { - semsg(_(e_py_systemexit), "python"); + emsg(_(e_cant_handle_systemexit_of_python_exception_in_vim)); PyErr_Clear(); } else @@ -5742,7 +5740,7 @@ run_do(const char *cmd, void *arg UNUSED else if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_SystemExit)) { PyMem_Free(code); - semsg(_(e_py_systemexit), "python"); + emsg(_(e_cant_handle_systemexit_of_python_exception_in_vim)); PyErr_Clear(); return; } @@ -5843,7 +5841,7 @@ run_eval(const char *cmd, typval_T *rettv { if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_SystemExit)) { - semsg(_(e_py_systemexit), "python"); + emsg(_(e_cant_handle_systemexit_of_python_exception_in_vim)); PyErr_Clear(); } else |