diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-08-21 18:59:03 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-11-01 10:04:03 (GMT) |
commit | f8167651d152cbeea67ecec29a3676adde016b9f (patch) | |
tree | 3e3f79cc54397022590df3cb24502f1d184dbc3d /src/Slit.cc | |
parent | 2d7bb686dabee9863bce55b929357a93e5eae2d6 (diff) | |
download | fluxbox_pavel-f8167651d152cbeea67ecec29a3676adde016b9f.zip fluxbox_pavel-f8167651d152cbeea67ecec29a3676adde016b9f.tar.bz2 |
Don't spam with the "Unable to convert ... from nil" messages
Diffstat (limited to 'src/Slit.cc')
-rw-r--r-- | src/Slit.cc | 6 |
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) { |