diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2015-11-15 23:00:04 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2015-11-15 22:05:51 +0000 |
commit | 561bcff0270106226bc8fb6ae49c54e407d06f46 (patch) | |
tree | 090bd0669010ad29f4ce1f0b1b475dc98b755713 /epan | |
parent | d66d379ac89f4bdcb8ef2164fc82aa27b1ac7c3c (diff) |
Lua: Fixed some argument # in argument errors.
Change-Id: I1dba41c9f129d368096dd69a0f40fa2164311124
Reviewed-on: https://code.wireshark.org/review/11852
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/wslua/wslua_proto_field.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/wslua/wslua_proto_field.c b/epan/wslua/wslua_proto_field.c index 9275c9e5b9..50dd10dff5 100644 --- a/epan/wslua/wslua_proto_field.c +++ b/epan/wslua/wslua_proto_field.c @@ -531,9 +531,9 @@ static int ProtoField_integer(lua_State* L, enum ftenum type) { if (type == FT_FRAMENUM) { if (base != BASE_NONE) - luaL_argerror(L, 3, "ftypes.FRAMENUMs must use base.NONE"); + luaL_argerror(L, 3, "FRAMENUM must use base.NONE"); else if (mask) - luaL_argerror(L, 3, "ftypes.FRAMENUMs can not have a bitmask"); + luaL_argerror(L, 5, "FRAMENUM can not have a bitmask"); } else if (base < BASE_DEC || base > BASE_HEX_DEC) { luaL_argerror(L, 3, "Base must be either base.DEC, base.HEX, base.OCT," " base.DEC_HEX, base.DEC_HEX or base.HEX_DEC"); @@ -697,13 +697,13 @@ static int ProtoField_boolean(lua_State* L, enum ftenum type) { const gchar* blob = luaL_optstring(L,6,NULL); if (mask == 0x0 && base != BASE_NONE) { - luaL_argerror(L,2,"Fieldbase (fielddisplay) must be base.NONE" + luaL_argerror(L,3,"Fieldbase (fielddisplay) must be base.NONE" " if bitmask is zero."); return 0; } if (mask != 0x0 && (base < 1 || base > 64)) { - luaL_argerror(L,2,"Fieldbase (fielddisplay) must be between 1 and 64" + luaL_argerror(L,3,"Fieldbase (fielddisplay) must be between 1 and 64" " if bitmask is non-zero."); return 0; } |