diff --git a/awesomerc.lua.in b/awesomerc.lua.in
index 5ac4bde6..5b55c089 100644
--- a/awesomerc.lua.in
+++ b/awesomerc.lua.in
@@ -91,7 +91,7 @@ mytasklist:set("text_focus", " widget->name, (*widget)->name))
+ luaL_error(L, "a widget with name `%s' already on statusbar `%s'",
+ witer->widget->name, (*sb)->name);
(*sb)->need_update = true;
w->widget = *widget;