mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Log information when failed to execute
This commit is contained in:
parent
d23f88d2cb
commit
5626ab71c7
1 changed files with 6 additions and 3 deletions
|
|
@ -32,11 +32,14 @@ using Flow.Launcher.ViewModel;
|
|||
using JetBrains.Annotations;
|
||||
using Squirrel;
|
||||
using Stopwatch = Flow.Launcher.Infrastructure.Stopwatch;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Flow.Launcher
|
||||
{
|
||||
public class PublicAPIInstance : IPublicAPI, IRemovable
|
||||
{
|
||||
private static readonly string ClassName = nameof(PublicAPIInstance);
|
||||
|
||||
private readonly Settings _settings;
|
||||
private readonly MainViewModel _mainVM;
|
||||
|
||||
|
|
@ -353,9 +356,9 @@ namespace Flow.Launcher
|
|||
|
||||
explorer.Start();
|
||||
}
|
||||
catch (System.ComponentModel.Win32Exception ex) when (ex.NativeErrorCode == 2)
|
||||
catch (Win32Exception ex) when (ex.NativeErrorCode == 2)
|
||||
{
|
||||
// File Manager not found
|
||||
LogError(ClassName, "File Manager not found");
|
||||
ShowMsgBox(
|
||||
string.Format(GetTranslation("fileManagerNotFound"), ex.Message),
|
||||
GetTranslation("fileManagerNotFoundTitle"),
|
||||
|
|
@ -365,7 +368,7 @@ namespace Flow.Launcher
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Other exceptions
|
||||
LogException(ClassName, "Failed to open folder", ex);
|
||||
ShowMsgBox(
|
||||
string.Format(GetTranslation("folderOpenError"), ex.Message),
|
||||
GetTranslation("errorTitle"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue