mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
PL/Python: Improve error messages
This commit is contained in:
@ -4181,10 +4181,10 @@ PLy_init_plpy(void)
|
|||||||
main_dict = PyModule_GetDict(main_mod);
|
main_dict = PyModule_GetDict(main_mod);
|
||||||
plpy_mod = PyImport_AddModule("plpy");
|
plpy_mod = PyImport_AddModule("plpy");
|
||||||
if (plpy_mod == NULL)
|
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);
|
PyDict_SetItemString(main_dict, "plpy", plpy_mod);
|
||||||
if (PyErr_Occurred())
|
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
|
/* the python interface to the elog function
|
||||||
|
Reference in New Issue
Block a user