@@ -38,7 +38,9 @@ public static ADOException Convert(Exception sqlException, string message, SqlSt
38
38
public static ADOException Convert ( Exception sqle , string message , SqlString sql , object [ ] parameterValues , IDictionary namedParameters )
39
39
{
40
40
StringBuilder sb = new StringBuilder ( ) ;
41
- sb . Append ( message ) . Append ( "\n " ) . Append ( "[ " ) . Append ( sql ) . Append ( " ]\n " ) ;
41
+ sb . Append ( message ) . Append ( Environment . NewLine ) .
42
+ Append ( "[ " ) . Append ( sql ) . Append ( " ]" )
43
+ . Append ( Environment . NewLine ) ;
42
44
if ( parameterValues . Length > 0 )
43
45
{
44
46
sb . Append ( "Positinal Parameters: " ) ;
@@ -48,7 +50,7 @@ public static ADOException Convert(Exception sqle, string message, SqlString sql
48
50
object value = parameterValue ;
49
51
if ( value == null )
50
52
value = "null" ;
51
- sb . Append ( " " ) . Append ( index ) . Append ( " " ) . Append ( value ) . Append ( " \n " ) ;
53
+ sb . Append ( " " ) . Append ( index ) . Append ( " " ) . Append ( value ) . Append ( Environment . NewLine ) ;
52
54
}
53
55
}
54
56
if ( namedParameters . Count > 0 )
@@ -59,11 +61,11 @@ public static ADOException Convert(Exception sqle, string message, SqlString sql
59
61
if ( value == null )
60
62
value = "null" ;
61
63
sb . Append ( " " ) . Append ( "Name: " ) . Append ( namedParameter . Key )
62
- . Append ( " - Value: " ) . Append ( value ) . Append ( " \n " ) ;
64
+ . Append ( " - Value: " ) . Append ( value ) . Append ( Environment . NewLine ) ;
63
65
}
64
66
}
65
67
ADOExceptionReporter . LogExceptions ( sqle , sb . ToString ( ) ) ;
66
68
return new ADOException ( sb . ToString ( ) , sqle , sql ) ;
67
69
}
68
70
}
69
- }
71
+ }
0 commit comments