mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-28 02:52:24 +08:00
various improvements to reflection inspector and C# console
This commit is contained in:
@ -237,8 +237,11 @@ namespace UnityExplorer.Helpers
|
||||
#endif
|
||||
}
|
||||
|
||||
public static string ExceptionToString(Exception e)
|
||||
public static string ExceptionToString(Exception e, bool innerMost = false)
|
||||
{
|
||||
while (innerMost && e.InnerException != null)
|
||||
e = e.InnerException;
|
||||
|
||||
return e.GetType() + ", " + e.Message;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user