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