From d157f72d4640c1c94f279a2f2377bb97d7c76c3e Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 20 Apr 2024 17:46:15 -0500 Subject: include format failure reason --- src/slskd/Core/Blacklist.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3