private static string ErrorRecordToString()

in dotNet/PsEdge/PsEdge.cs [79:94]


        private static string ErrorRecordToString(ErrorRecord error)
        {
            StringBuilder sb = new StringBuilder(error.ToString());
            if (error.ScriptStackTrace != null)
            {
                sb.AppendLine("");
                sb.AppendLine(error.ScriptStackTrace);
            }
            if (error.Exception != null && error.Exception.StackTrace != null)
            {
                sb.AppendLine("");
                sb.AppendLine(error.Exception.StackTrace.ToString());
            }

            return sb.ToString();
        }