8000 PL/Python: Improve error messages · postgrespro/postgres_cluster@65ca8e6 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 65ca8e6

Browse files
committed
PL/Python: Improve error messages
1 parent 2856c51 commit 65ca8e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pl/plpython/plpy_plpymodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ PLy_init_plpy(void)
174174
main_dict = PyModule_GetDict(main_mod);
175175
plpy_mod = PyImport_AddModule("plpy");
176176
if (plpy_mod == NULL)
177-
PLy_elog(ERROR, "could not initialize plpy");
177+
PLy_elog(ERROR, "could not import \"plpy\" module");
178178
PyDict_SetItemString(main_dict, "plpy", plpy_mod);
179179
if (PyErr_Occurred())
180-
PLy_elog(ERROR, "could not initialize plpy");
180+
PLy_elog(ERROR, "could not import \"plpy\" module");
181181
}
182182

183183
static void

0 commit comments

Comments
 (0)
0