]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
PL/Python: Improve error messages
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 25 Apr 2012 18:11:59 +0000 (21:11 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 25 Apr 2012 18:12:48 +0000 (21:12 +0300)
src/pl/plpython/plpython.c

index a3c8e5f0f0d16d1a465ca7930b5e7c51ccba1116..c7b9b6003edd8c9ea736c4f0943c6d8f2925273a 100644 (file)
@@ -4181,10 +4181,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");
 }
 
 /* the python interface to the elog function