mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Clarify exception type in path resolution catch block
Updated the catch block in DataLocation.cs to explicitly use System.Exception instead of Exception when handling path resolution errors. This improves code clarity while maintaining the same error handling logic for ArgumentException, NotSupportedException, and PathTooLongException.
This commit is contained in:
parent
b923c40054
commit
9b0a50376c
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
|
|||
{
|
||||
return Path.GetFullPath(Path.Combine(Constant.ProgramDirectory, path));
|
||||
}
|
||||
catch (Exception ex) when (ex is ArgumentException ||
|
||||
catch (System.Exception ex) when (ex is ArgumentException ||
|
||||
ex is NotSupportedException ||
|
||||
ex is PathTooLongException)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue