aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-04-25 21:11:59 +0300
committerPeter Eisentraut <peter_e@gmx.net>2012-04-25 21:12:48 +0300
commitf33f1a875f9b799da202408e118a47e4ee2bab7b (patch)
tree6f1ef3daa5bdf08fd1953b75afc581ebf3ea472e /src
parent342901930c1baefe49688c7d25a69196cf644180 (diff)
downloadpostgresql-f33f1a875f9b799da202408e118a47e4ee2bab7b.tar.gz
postgresql-f33f1a875f9b799da202408e118a47e4ee2bab7b.zip
PL/Python: Improve error messages
Diffstat (limited to 'src')
-rw-r--r--src/pl/plpython/plpython.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c
index a3c8e5f0f0d..c7b9b6003ed 100644
--- a/src/pl/plpython/plpython.c
+++ b/src/pl/plpython/plpython.c
@@ -4181,10 +4181,10 @@ PLy_init_plpy(void)
main_dict = PyModule_GetDict(main_mod);
plpy_mod = PyImport_AddModule("plpy");
if (plpy_mod == NULL)
- PLy_elog(ERROR, "could not initialize plpy");
+ PLy_elog(ERROR, "could not import \"plpy\" module");
PyDict_SetItemString(main_dict, "plpy", plpy_mod);
if (PyErr_Occurred())
- PLy_elog(ERROR, "could not initialize plpy");
+ PLy_elog(ERROR, "could not import \"plpy\" module");
}
/* the python interface to the elog function