From 23ec371daea282e5c1148bb3bff0ed563977181a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 29 Dec 2017 09:26:43 +0100 Subject: [PATCH] python: fix error message when executing code from string in weechat_python_load (issue #128) --- src/plugins/python/weechat-python.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/python/weechat-python.c b/src/plugins/python/weechat-python.c index 906ce1615..05bbf1009 100644 --- a/src/plugins/python/weechat-python.c +++ b/src/plugins/python/weechat-python.c @@ -808,9 +808,8 @@ weechat_python_load (const char *filename, const char *code) if (PyErr_Occurred ()) { weechat_printf (NULL, - weechat_gettext ("%s%s: unable to create eval script"), - weechat_prefix ("error"), - PYTHON_PLUGIN_NAME); + weechat_gettext ("%s%s: unable to execute code"), + weechat_prefix ("error"), PYTHON_PLUGIN_NAME); PyErr_Print (); if (rc) Py_XDECREF(rc);