Commit 65ca8e68 authored by Peter Eisentraut's avatar Peter Eisentraut

PL/Python: Improve error messages

parent 2856c51c
......@@ -174,10 +174,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");
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment