summaryrefslogtreecommitdiffhomepage
path: root/src/python/nxt_python.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-08-09 10:15:00 +0300
committerMax Romanov <max.romanov@nginx.com>2021-08-09 10:15:00 +0300
commit3580842d34f8543f7bb41551f7a0dec8723289a8 (patch)
tree64304a7b670ab8050b3682d4b588773c2a9cb309 /src/python/nxt_python.c
parent1a85ad378f3374b9c83b59ae9c12277288aa7c30 (diff)
downloadunit-3580842d34f8543f7bb41551f7a0dec8723289a8.tar.gz
unit-3580842d34f8543f7bb41551f7a0dec8723289a8.tar.bz2
Python: fixing misprint in error message.
Diffstat (limited to 'src/python/nxt_python.c')
-rw-r--r--src/python/nxt_python.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/nxt_python.c b/src/python/nxt_python.c
index bdce68b2..abb04194 100644
--- a/src/python/nxt_python.c
+++ b/src/python/nxt_python.c
@@ -364,13 +364,13 @@ nxt_python_set_target(nxt_task_t *task, nxt_python_target_t *target,
obj = PyDict_GetItemString(PyModule_GetDict(module), callable);
if (nxt_slow_path(obj == NULL)) {
nxt_alert(task, "Python failed to get \"%s\" from module \"%s\"",
- callable, module);
+ callable, module_name);
goto fail;
}
if (nxt_slow_path(PyCallable_Check(obj) == 0)) {
nxt_alert(task, "\"%s\" in module \"%s\" is not a callable object",
- callable, module);
+ callable, module_name);
goto fail;
}