summaryrefslogtreecommitdiff
path: root/actions.go
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-02-16 09:44:52 -0700
committertjp <tjp@ctrl-c.club>2024-02-16 09:44:52 -0700
commitb787ef92df3f859b033aa8cded6b1f6dbc7c2be0 (patch)
treee60f8e7d4010559f0579951a993f19240a8f84da /actions.go
parent865c6dc23099e129cb3ba9709b2926734144e605 (diff)
lipgloss styles
Diffstat (limited to 'actions.go')
-rw-r--r--actions.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions.go b/actions.go
index c80445b..656ab99 100644
--- a/actions.go
+++ b/actions.go
@@ -252,7 +252,7 @@ func fetch(state *BrowserState, u string, tlsConf *tls.Config) (*sliderule.Respo
var tofuErr *TOFUViolation
if errors.As(err, &tofuErr) {
- writeError(err.Error())
+ state.Printer.PrintError(err.Error())
state.Readline.SetPrompt("Trust new certificate instead (y/n)? [n] ")
line, err := state.Readline.Readline()
if err != nil {
@@ -284,7 +284,7 @@ func upload(state *BrowserState, u string, body io.Reader, tlsConf *tls.Config)
response, err := sliderule.NewClient(tlsConf).Upload(ctx, u, body)
var tofuErr *TOFUViolation
if errors.As(err, &tofuErr) {
- writeError(err.Error())
+ state.Printer.PrintError(err.Error())
state.Readline.SetPrompt("Trust new certificate instead (y/n)? [n] ")
line, err := state.Readline.Readline()
if err != nil {