From 8efd04f4314e44c5b732e95163383b1911d279cb Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 29 十月 2018 17:30:38 +0800
Subject: [PATCH] 4340 【前端】支持xlua方便IOS提审
---
Assets/XLua/Src/LuaTable.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Assets/XLua/Src/LuaTable.cs b/Assets/XLua/Src/LuaTable.cs
index d4cc4ab..6e17c97 100644
--- a/Assets/XLua/Src/LuaTable.cs
+++ b/Assets/XLua/Src/LuaTable.cs
@@ -53,7 +53,7 @@
Type type_of_value = typeof(TValue);
if (lua_type == LuaTypes.LUA_TNIL && type_of_value.IsValueType())
{
- throw new InvalidCastException("can not assign nil to " + type_of_value);
+ throw new InvalidCastException("can not assign nil to " + type_of_value.GetFriendlyName());
}
try
@@ -147,7 +147,7 @@
LuaTypes lua_type = LuaAPI.lua_type(L, -1);
if (lua_type == LuaTypes.LUA_TNIL && typeof(T).IsValueType())
{
- throw new InvalidCastException("can not assign nil to " + typeof(T));
+ throw new InvalidCastException("can not assign nil to " + typeof(T).GetFriendlyName());
}
T value;
--
Gitblit v1.8.0