diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-04-20 17:46:15 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-04-20 17:46:15 -0500 |
| commit | d157f72d4640c1c94f279a2f2377bb97d7c76c3e (patch) | |
| tree | 4f9d4e629bc5a03cf26714b590eadb5bdea5546f /src | |
| parent | 8815f5042ca19cb082e966497d088ca9b3d79f28 (diff) | |
| download | slskd-d157f72d4640c1c94f279a2f2377bb97d7c76c3e.tar.gz | |
include format failure reason
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/Blacklist.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Core/Blacklist.cs b/src/slskd/Core/Blacklist.cs index dc8a9162..5242a797 100644 --- a/src/slskd/Core/Blacklist.cs +++ b/src/slskd/Core/Blacklist.cs @@ -220,9 +220,9 @@ public class Blacklist throw new Exception(); } } - catch + catch (Exception ex) { - throw new FormatException($"Failed to parse blacklist line {lineNumber} '{line}' (expected {format} format)"); + throw new FormatException($"Failed to parse {format} blacklist line {lineNumber} '{line}': {ex.Message}"); } // grab the first octet of the first and last addresses in the range |
