summaryrefslogtreecommitdiffstats
path: root/pkg/gui/services/custom_commands/handler_creator.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/services/custom_commands/handler_creator.go')
-rw-r--r--pkg/gui/services/custom_commands/handler_creator.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/services/custom_commands/handler_creator.go b/pkg/gui/services/custom_commands/handler_creator.go
index 4d4fb896f..9a127f362 100644
--- a/pkg/gui/services/custom_commands/handler_creator.go
+++ b/pkg/gui/services/custom_commands/handler_creator.go
@@ -1,6 +1,7 @@
package custom_commands
import (
+ "errors"
"fmt"
"strings"
"text/template"
@@ -103,7 +104,7 @@ func (self *HandlerCreator) call(customCommand config.CustomCommand) func() erro
return self.confirmPrompt(resolvedPrompt, g)
}
default:
- return self.c.ErrorMsg("custom command prompt must have a type of 'input', 'menu', 'menuFromCommand', or 'confirm'")
+ return errors.New("custom command prompt must have a type of 'input', 'menu', 'menuFromCommand', or 'confirm'")
}
}