Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

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

+2-2
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)