Mercurial > hg > orthanc
comparison Core/Lua/LuaContext.cpp @ 2261:c4b16f107f19
fix
author | amazy |
---|---|
date | Thu, 02 Feb 2017 21:32:44 +0100 |
parents | cd70a86618b4 |
children | 6d425452247e |
comparison
equal
deleted
inserted
replaced
2260:a7a4fd44286c | 2261:c4b16f107f19 |
---|---|
236 { | 236 { |
237 LuaContext& that = GetLuaContext(state); | 237 LuaContext& that = GetLuaContext(state); |
238 | 238 |
239 // Check the types of the arguments | 239 // Check the types of the arguments |
240 int nArgs = lua_gettop(state); | 240 int nArgs = lua_gettop(state); |
241 if ((nArgs < 1 or nArgs > 2) || // check args count | 241 if ((nArgs < 1 || nArgs > 2) || // check args count |
242 !lua_isstring(state, 1)) // URL is a string | 242 !lua_isstring(state, 1)) // URL is a string |
243 { | 243 { |
244 LOG(ERROR) << "Lua: Bad parameters to HttpGet()"; | 244 LOG(ERROR) << "Lua: Bad parameters to HttpGet()"; |
245 lua_pushnil(state); | 245 lua_pushnil(state); |
246 return 1; | 246 return 1; |