Skip to content

Commit

Permalink
exception error message fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Kraynyukhov committed Jul 11, 2018
1 parent bf5169c commit 6d9ad75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/modules/nljson.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ static inline void set_pod_value(lua_State *L,json *sp)
throw std::system_error(
EINVAL,
std::system_category(),
"Error in set_pod_value():"+
"Error in set_pod_value() at line"+
std::to_string(__LINE__)+
": value on stack at level "+
": the value on lua stack at level "+
std::to_string(lua_gettop(L))+
" is not of a POD type, instead it is of type: "+
lua_typename(L,-1)+"["+
lua_typename(L,lua_gettop(L))+"["+
std::to_string(value_type)+
"]"
);
Expand Down

0 comments on commit 6d9ad75

Please # to comment.