Skip to content

Commit df4f08b

Browse files
committed
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.
1 parent 83cab76 commit df4f08b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher/Helper/ResultHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ public static class ResultHelper
3636
freshResults?.FirstOrDefault(r => r.Title == title && r.SubTitle == subTitle);
3737
}
3838
}
39-
catch
39+
catch (System.Exception e)
4040
{
41+
App.API.LogException(nameof(ResultHelper), $"Failed to query results for {plugin.Metadata.Name}", e);
4142
return null;
4243
}
4344
}

0 commit comments

Comments
 (0)