Fix log message issue

This commit is contained in:
Jack251970 2025-06-25 21:37:02 +08:00
parent 605837b474
commit f841175ccd

View file

@ -56,7 +56,7 @@ internal static class HotKeyMapper
catch (Exception e)
{
App.API.LogError(ClassName,
string.Format("|HotkeyMapper.SetWithChefKeys|Error registering hotkey: {0} \nStackTrace:{1}",
string.Format("Error registering hotkey: {0} \nStackTrace:{1}",
e.Message,
e.StackTrace));
string errorMsg = string.Format(App.API.GetTranslation("registerHotkeyFailed"), hotkeyStr);
@ -81,7 +81,7 @@ internal static class HotKeyMapper
catch (Exception e)
{
App.API.LogError(ClassName,
string.Format("|HotkeyMapper.SetHotkey|Error registering hotkey {2}: {0} \nStackTrace:{1}",
string.Format("Error registering hotkey {2}: {0} \nStackTrace:{1}",
e.Message,
e.StackTrace,
hotkeyStr));
@ -107,7 +107,7 @@ internal static class HotKeyMapper
catch (Exception e)
{
App.API.LogError(ClassName,
string.Format("|HotkeyMapper.RemoveHotkey|Error removing hotkey: {0} \nStackTrace:{1}",
string.Format("Error removing hotkey: {0} \nStackTrace:{1}",
e.Message,
e.StackTrace));
string errorMsg = string.Format(App.API.GetTranslation("unregisterHotkeyFailed"), hotkeyStr);