aboutsummaryrefslogtreecommitdiff
path: root/ui/input.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/input.go')
-rw-r--r--ui/input.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/input.go b/ui/input.go
index bd7306b..0aa2f06 100644
--- a/ui/input.go
+++ b/ui/input.go
@@ -20,7 +20,8 @@ package ui
import (
"errors"
- "log"
+ "fmt"
+ "os"
p "github.com/manifoldco/promptui"
)
@@ -39,7 +40,8 @@ func TextInput(label, errMessage string) string {
res, err := prompt.Run()
if err != nil {
- log.Fatal("Failed to run TextInput Prompt.")
+ fmt.Println("Failed to run TextInput Prompt.", err.Error())
+ os.Exit(1)
}
return res