From 82a357057ce5c3f1a89809ce397e0477b19b00b0 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Tue, 18 Mar 2008 00:00:22 -0500 Subject: add quotes to error messages --- src/curses.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/curses.c b/src/curses.c index 34809f9..cc3530c 100644 --- a/src/curses.c +++ b/src/curses.c @@ -102,7 +102,7 @@ static int get_char_color(lua_State* L, int stack_pos) lua_pop(L, 1); val = get_color_pair(L, str); if (val == -1) { - return luaL_error(L, "Unknown color pair %s", str); + return luaL_error(L, "Unknown color pair \"%s\"", str); } return COLOR_PAIR(val); @@ -126,7 +126,7 @@ static int get_char_attr(lua_State* L, int stack_pos) cur_mode = get_mode_enum(str); if (cur_mode == -1) { - return luaL_error(L, "Unknown attribute %s", str); + return luaL_error(L, "Unknown attribute \"%s\"", str); } lua_toboolean(L, -1) ? (mode |= cur_mode) : (mode &= ~cur_mode); -- cgit v1.2.3-54-g00ecf