From dcf46a63eb43297180b5284fab0acca405a6a1c4 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Wed, 17 Jul 2019 16:57:43 +0300 Subject: Exiting application process in case of pre_init stage error. --- src/nxt_application.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nxt_application.c') diff --git a/src/nxt_application.c b/src/nxt_application.c index f63b90fb..468bc627 100644 --- a/src/nxt_application.c +++ b/src/nxt_application.c @@ -333,10 +333,7 @@ nxt_app_start(nxt_task_t *task, void *data) ret = nxt_app->pre_init(task, data); if (nxt_slow_path(ret != NXT_OK)) { - nxt_debug(task, "application pre_init failed"); - - } else { - nxt_debug(task, "application pre_init done"); + return ret; } } -- cgit