From 2d2ff2cb1698030121614161665c280d45b4991f Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Sat, 15 Sep 2012 20:54:20 +0300 Subject: [PATCH] l_chk_can_parse_url: Revise error message --- src/lua/chk.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lua/chk.c b/src/lua/chk.c index 1bc2100..fc0db94 100644 --- a/src/lua/chk.c +++ b/src/lua/chk.c @@ -56,9 +56,12 @@ gboolean l_chk_can_parse_url(lua_State *l, _quvi_script_t qs, } if (qs->domains->len ==0) { - luaL_error(l, "%s: %s: dictionary `%s' must contain " - "a string value for `%s'", qs->fpath->str, - script_func, k_can_parse_url, k_domains); + static const gchar *_E = + "%s: %s: the dictionary `%s' must contain a string " + "value for `%s'"; + + luaL_error(l, _E, qs->fpath->str, script_func, + k_can_parse_url, k_domains); } return (r); } -- 2.11.4.GIT