Skip to content

Commit fe3babd

Browse files
committed
Log error when fail to fetch type
1 parent bad7db6 commit fe3babd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ namespace Flow.Launcher.Plugin.Explorer.Views;
1515
[INotifyPropertyChanged]
1616
public partial class QuickAccessLinkSettings
1717
{
18+
private static readonly string ClassName = nameof(QuickAccessLinkSettings);
19+
1820
private string _selectedPath;
1921
public string SelectedPath
2022
{
@@ -209,6 +211,7 @@ private static ResultType GetResultType(string path)
209211
else
210212
{
211213
// This should not happen, but just in case, we assume it's a folder
214+
Main.Context.API.LogError(ClassName, $"The path '{path}' does not exist or is invalid. Defaulting to Folder type.");
212215
return ResultType.Folder;
213216
}
214217
}

0 commit comments

Comments
 (0)