wasSharpNET

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 23  →  ?path2? @ 24
/Diagnostics/ExceptionExtensions.cs
@@ -14,7 +14,7 @@
{
public static class ExceptionExtensions
{
public static string PrettyPrint(this Exception ex)
public static string PrettyPrint(this Exception ex, int columns = 75)
{
if(ex == null)
return string.Empty;
@@ -34,7 +34,7 @@
continue;
 
sb.Append(Enumerable
.Repeat('-', 75)
.Repeat('-', columns)
.Concat(Environment.NewLine)
.ToArray());
sb.Append("File: ");
@@ -49,13 +49,13 @@
}
 
sb.Append(Enumerable
.Repeat('-', 75)
.Repeat('-', columns)
.Concat(Environment.NewLine)
.ToArray());
sb.Append(ex);
sb.Append(Environment.NewLine);
sb.Append(Enumerable
.Repeat('-', 75)
.Repeat('-', columns)
.Concat(Environment.NewLine)
.ToArray());