浏览代码

More precise error logs for Messager

/main
Thomas ICHÉ 6 年前
当前提交
c6386c03
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      Runtime/Events/OnMessageEvent.cs
  2. 2
      Runtime/Messager/Messager.cs

2
Runtime/Events/OnMessageEvent.cs


}
catch(System.Exception e)
{
UnityEngine.Debug.LogError(string.Format("Exception Caught while catching message '{0}' on Object '{1}'", MessageName, gameObject.name));
UnityEngine.Debug.LogError(string.Format("OnMessageEvent : Exception Caught while catching message '{0}' on Object '{1}'", MessageName, gameObject.name));
UnityEngine.Debug.LogException(e);
}
}

2
Runtime/Messager/Messager.cs


}
catch (Exception e)
{
Debug.LogError(string.Format("Caught {0} while sending Message {1}", e.GetType().Name, eventName));
Debug.LogError(string.Format("Messager : Caught {0} while sending Message {1}", e.GetType().Name, eventName));
Debug.LogException(e);
}
}

正在加载...
取消
保存