aboutsummaryrefslogtreecommitdiff
path: root/src/Slit.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-08-21 18:59:03 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-08-21 18:59:03 (GMT)
commit00cc28d936d66101d78289f66c04373854fb7a3f (patch)
tree2767c6d30da8602edb1b76d8ab2b4d0df56d72ef /src/Slit.cc
parent675bbfd80b185f0c7c186b8338f7245bd2c1bb93 (diff)
downloadfluxbox_pavel-00cc28d936d66101d78289f66c04373854fb7a3f.zip
fluxbox_pavel-00cc28d936d66101d78289f66c04373854fb7a3f.tar.bz2
Don't spam with the "Unable to convert ... from nil" messages
Diffstat (limited to 'src/Slit.cc')
-rw-r--r--src/Slit.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index 1cf13cf..3c90eed 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -153,8 +153,10 @@ void Slit::SlitClientsRes::setFromLua(lua::state &l) {
153 SlitClients t; 153 SlitClients t;
154 154
155 if(l.type(-1) != lua::TTABLE) { 155 if(l.type(-1) != lua::TTABLE) {
156 std::cerr << "Cannot convert to a client list from lua type " 156 if(! l.isnil(-1)) {
157 << l.type_name(l.type(-1)) << std::endl; 157 std::cerr << "Cannot convert to a client list from lua type "
158 << l.type_name(l.type(-1)) << std::endl;
159 }
158 return; 160 return;
159 } 161 }
160 for(size_t i = 1; l.rawgeti(-1, i), !l.isnil(-1); l.pop(), ++i) { 162 for(size_t i = 1; l.rawgeti(-1, i), !l.isnil(-1); l.pop(), ++i) {