aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-03-18 00:00:22 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-03-18 00:00:22 -0500
commit82a357057ce5c3f1a89809ce397e0477b19b00b0 (patch)
tree0ea811d647220f55548d4f5a95f0ccfeded1a2ca
parent89a05b6b885e4137f3d77dd006a31df81182587c (diff)
downloadluancurses-82a357057ce5c3f1a89809ce397e0477b19b00b0.tar.gz
luancurses-82a357057ce5c3f1a89809ce397e0477b19b00b0.zip
add quotes to error messages
-rw-r--r--src/curses.c4
1 files 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);