summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_file.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_file.c b/src/nxt_file.c
index 8381dc74..4c2a8783 100644
--- a/src/nxt_file.c
+++ b/src/nxt_file.c
@@ -503,7 +503,7 @@ nxt_file_stderr(nxt_file_t *file)
}
nxt_thread_log_error(NXT_LOG_CRIT, "dup2(%FD, %FD, \"%FN\") failed %E",
- file->fd, STDERR_FILENO, file->name);
+ file->fd, STDERR_FILENO, file->name, nxt_errno);
return NXT_ERROR;
}