From 6766fcfefab47cff251b989083f534aad16601dd Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 7 Nov 2008 11:19:26 +0100 Subject: [PATCH] screen: only warn if no tag left Signed-off-by: Julien Danjou --- screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/screen.c b/screen.c index 82d21dd6..aac41e80 100644 --- a/screen.c +++ b/screen.c @@ -460,8 +460,10 @@ luaA_screen_tags(lua_State *L) /* check there's at least one tag! */ if(!s->tags.len) { + luaA_warn(L, "screen %d has no tag, taking last resort action and adding default tag\n", + s->index); tag_append_to_screen(tag_new("default", sizeof("default") - 1, layout_tile, 0.5, 1, 0), s); - luaL_error(L, "no tag were added on screen %d, taking last resort action and adding default tag\n", s->index); + return 1; } } else