From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 9529844643B for ; Thu, 1 Oct 2020 16:51:53 +0300 (MSK) Received: by mail-lj1-f195.google.com with SMTP id y4so4712364ljk.8 for ; Thu, 01 Oct 2020 06:51:53 -0700 (PDT) From: Cyrill Gorcunov Date: Thu, 1 Oct 2020 16:51:10 +0300 Message-Id: <20201001135113.329664-4-gorcunov@gmail.com> In-Reply-To: <20201001135113.329664-1-gorcunov@gmail.com> References: <20201001135113.329664-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v4 3/6] box/func: more detailed error in module reloading List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml Cc: Vladislav Shpilevoy , Alexander Turenko Otherwise it is unclear what exactly been failing. Part-of #4642 Signed-off-by: Cyrill Gorcunov --- src/box/func.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/box/func.c b/src/box/func.c index 452866a5d..89796310f 100644 --- a/src/box/func.c +++ b/src/box/func.c @@ -471,8 +471,11 @@ module_reload(const char *package, const char *package_end, struct module **modu struct func_name name; func_split_name(mod_sym->name, &name); mod_sym->addr = module_sym(new_module, name.sym); - if (mod_sym->addr == NULL) + if (mod_sym->addr == NULL) { + say_error("module: reload %s, symbol %s not found", + package, name.sym); goto restore; + } mod_sym->module = new_module; rlist_move(&new_module->funcs, &mod_sym->item); } -- 2.26.2