diff options
author | Peter Eisentraut | 2012-04-25 18:11:59 +0000 |
---|---|---|
committer | Peter Eisentraut | 2012-04-25 18:11:59 +0000 |
commit | 65ca8e68b7b21de7641d8ec9b7d4b9a2dd5e081d (patch) | |
tree | 69079e898e4d8f8212bf2961e0ccd9fa71face45 | |
parent | 2856c51c86857f2df674a37609515d26311062e9 (diff) |
PL/Python: Improve error messages
-rw-r--r-- | src/pl/plpython/plpy_plpymodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pl/plpython/plpy_plpymodule.c b/src/pl/plpython/plpy_plpymodule.c index 01caa0a323..bc0b9e6f84 100644 --- a/src/pl/plpython/plpy_plpymodule.c +++ b/src/pl/plpython/plpy_plpymodule.c @@ -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 |