From a665f5d894539cae5f4188e4a72ea9634b8c4ed0 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 27 Apr 2021 19:29:20 +0800 Subject: refactor: ... --- BackEnd/Timeline/Services/Imaging/ImageException.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BackEnd/Timeline/Services/Imaging/ImageException.cs') diff --git a/BackEnd/Timeline/Services/Imaging/ImageException.cs b/BackEnd/Timeline/Services/Imaging/ImageException.cs index 12aefa0a..18c8a4d3 100644 --- a/BackEnd/Timeline/Services/Imaging/ImageException.cs +++ b/BackEnd/Timeline/Services/Imaging/ImageException.cs @@ -38,7 +38,7 @@ namespace Timeline.Services.Imaging System.Runtime.Serialization.StreamingContext context) : base(info, context) { } private static string MakeMessage(ErrorReason? reason) => - string.Format(CultureInfo.InvariantCulture, Resource.ExceptionImage, reason switch + string.Format(CultureInfo.CurrentCulture, Resource.ExceptionImage, reason switch { ErrorReason.CantDecode => Resource.ExceptionImageReasonCantDecode, ErrorReason.UnmatchedFormat => Resource.ExceptionImageReasonUnmatchedFormat, -- cgit v1.2.3