From df4f08b071b82866b99430327843b20a5ecd64f9 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Wed, 15 Oct 2025 12:35:53 +0800 Subject: [PATCH] Add exception logging to ResultHelper catch block Updated the `catch` block in the `ResultHelper` class to explicitly catch `System.Exception` and log the error using `App.API.LogException`. The log includes the class name, a failure message for querying results, and the exception details. This improves error visibility and debugging. --- Flow.Launcher/Helper/ResultHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/Helper/ResultHelper.cs b/Flow.Launcher/Helper/ResultHelper.cs index f99ba0377..389b06b4f 100644 --- a/Flow.Launcher/Helper/ResultHelper.cs +++ b/Flow.Launcher/Helper/ResultHelper.cs @@ -36,8 +36,9 @@ public static class ResultHelper freshResults?.FirstOrDefault(r => r.Title == title && r.SubTitle == subTitle); } } - catch + catch (System.Exception e) { + App.API.LogException(nameof(ResultHelper), $"Failed to query results for {plugin.Metadata.Name}", e); return null; } }