From a3f9090ee8f30001f355c68c634682959f5ebe55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Mart=C3=ADnez?= Date: Tue, 24 Jan 2017 20:10:37 -0300 Subject: Return nil if `msgstr` is empty. Also remove debugging statements left from previous commit. --- gettext.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'gettext.lua') diff --git a/gettext.lua b/gettext.lua index 6f3a1cb..d6ce223 100644 --- a/gettext.lua +++ b/gettext.lua @@ -249,7 +249,6 @@ local function load_catalog(filename) err = nil local hdrs = data[""] if not (hdrs and hdrs[0]) then - print(dump(hdrs)) return bail("catalog has no headers") end -- cgit v1.2.3