mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-13 19:57:53 +08:00
PL/Python: Improve error messages
This commit is contained in:
parent
2856c51c86
commit
65ca8e68b7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user