From 6fbe660f96419e27f13004b2afede5272f9eb9f7 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 10 Apr 2021 17:31:23 +1000 Subject: full coverage for logging commands --- pkg/gui/custom_commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/gui/custom_commands.go') diff --git a/pkg/gui/custom_commands.go b/pkg/gui/custom_commands.go index c365f4516..881c53502 100644 --- a/pkg/gui/custom_commands.go +++ b/pkg/gui/custom_commands.go @@ -68,7 +68,7 @@ func (gui *Gui) handleCustomCommandKeybinding(customCommand config.CustomCommand loadingText = gui.Tr.LcRunningCustomCommandStatus } return gui.WithWaitingStatus(loadingText, func() error { - if err := gui.OSCommand.RunShellCommand(cmdStr); err != nil { + if err := gui.OSCommand.WithSpan("Custom command").RunShellCommand(cmdStr); err != nil { return gui.surfaceError(err) } return gui.refreshSidePanels(refreshOptions{}) -- cgit v1.2.3