Fixes exception not showing c++ stacktrace in some cases.
This commit is contained in:
parent
3cb243175c
commit
e1dadddf06
|
@ -11,14 +11,22 @@ namespace PkmnLibSharp.Utilities
|
|||
Stack = stack;
|
||||
}
|
||||
|
||||
public override string Message
|
||||
{
|
||||
get
|
||||
{
|
||||
var s = base.Message;
|
||||
if (Stack != null)
|
||||
{
|
||||
s += Environment.NewLine + Stack;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
var s = base.ToString();
|
||||
if (Stack != null)
|
||||
{
|
||||
s += Environment.NewLine + Stack;
|
||||
}
|
||||
return s;
|
||||
return Message;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue