From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp29.i.mail.ru (smtp29.i.mail.ru [94.100.177.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 050C2469710 for ; Sun, 31 May 2020 08:09:45 +0300 (MSK) From: "Alexander V. Tikhonov" Date: Sun, 31 May 2020 08:09:41 +0300 Message-Id: Subject: [Tarantool-patches] [PATCH v1 1/2] Correct error message at pwd.lua List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Bronnikov , Alexander Turenko Cc: Oleg Piskunov , tarantool-patches@dev.tarantool.org Durring investigation of the issues found that error message had not user friendly format: local pwgr_errstr = "get%s failed [errno %d]: %s" produced: [001] LuajitError: builtin/pwd.lua:101: getgetgrall failed [errno 2]: No such file or directory while it had to be: [001] LuajitError: builtin/pwd.lua:101: get getgrall failed [errno 2]: No such file or directory Fixed the error message. --- Github: https://github.com/tarantool/tarantool/tree/avtikhon/gh-4592-enoent-pwd-full-ci src/lua/pwd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/pwd.lua b/src/lua/pwd.lua index d59594b46..1ea79b5eb 100644 --- a/src/lua/pwd.lua +++ b/src/lua/pwd.lua @@ -86,7 +86,7 @@ ffi.cdef[[ -- {{{ Error handling -local pwgr_errstr = "get%s failed [errno %d]: %s" +local pwgr_errstr = "get %s failed [errno %d]: %s" -- Use it in the following way: set errno to zero, call a passwd / -- group function, then call this function to check whether there -- 2.17.1