title: LuaBind c++ error handler when calling a Lua function
body: <p>I am little newbie in C++ scripting but I know some things.
  I'm compiling a plugin that use a function to call an Lua callback using the LuaBind, but the client crashes when function doesn't exists on <code>main.lua</code>, also I'm trying to add an error handler to that functions... I don't know what I can do to solve it.</p>
  <p>Here is my code:</p>
  <pre><code>{
      try
      {
          luabind::call_function&lt;int&gt;(L, &quot;onServerFrame&quot;, elapsedTime);
      }
      catch (luabind::error&amp; e)
      {
          std::string error = lua_tostring(e.state(), -1);
          std::cout &lt;&lt; error &lt;&lt; &quot;\n&quot;;
      }
  }
  </code></pre>