From fcae006a138362d47d6ebac4a16471e24adfd72d Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 3 Feb 2025 14:11:01 +0000 Subject: [PATCH] Improved `GenerateHashForData` error logging --- Libraries/Core/Utils/HashUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Core/Utils/HashUtil.cs b/Libraries/Core/Utils/HashUtil.cs index 771e089a..bf377c45 100644 --- a/Libraries/Core/Utils/HashUtil.cs +++ b/Libraries/Core/Utils/HashUtil.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using System.Text.RegularExpressions; using System.Security.Cryptography; using SptCommon.Annotations; @@ -92,7 +92,7 @@ public class HashUtil return Convert.ToHexString(sha1HashData).Replace("-", string.Empty); } - throw new NotImplementedException("Provided hash algorithm is not supported."); + throw new NotImplementedException($"Provided hash algorithm: {algorithm} is not supported."); } ///