Skip to content

Commit 3698815

Browse files
author
Kevin Hellemun
committed
Use build in new line separator. (#63)
1 parent 3d7bb5e commit 3698815

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

BunqSdk/Exception/ExceptionFactory.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ public class ExceptionFactory
1515
private const int HTTP_RESPONSE_CODE_TOO_MANY_REQUESTS = 429;
1616
private const int HTTP_RESPONSE_CODE_INTERNAL_SERVER_ERROR = 500;
1717

18-
/// <summary>
19-
/// Glue to concatenate the error messages.
20-
/// </summary>
21-
private const string SEPARATOR_ERROR_MESSAGES = "\n";
22-
2318
/// <summary>
2419
/// String format constants.
2520
/// </summary>
@@ -59,8 +54,8 @@ private static string ConcatenateAllMessage(IEnumerable<string> messages, string
5954
{
6055
return string.Format(FORMAT_ERROR_MESSAGE,
6156
responseId,
62-
string.Join(SEPARATOR_ERROR_MESSAGES, messages)
63-
);
57+
string.Join(Environment.NewLine, messages)
58+
);
6459
}
6560
}
6661
}

0 commit comments

Comments
 (0)