From b787ef92df3f859b033aa8cded6b1f6dbc7c2be0 Mon Sep 17 00:00:00 2001 From: tjp Date: Fri, 16 Feb 2024 09:44:52 -0700 Subject: lipgloss styles --- actions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actions.go') 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 { -- cgit v1.2.3