diff options
| author | tjp <tjp@ctrl-c.club> | 2024-02-16 09:44:52 -0700 |
|---|---|---|
| committer | tjp <tjp@ctrl-c.club> | 2024-02-16 09:44:52 -0700 |
| commit | b787ef92df3f859b033aa8cded6b1f6dbc7c2be0 (patch) | |
| tree | e60f8e7d4010559f0579951a993f19240a8f84da /actions.go | |
| parent | 865c6dc23099e129cb3ba9709b2926734144e605 (diff) | |
lipgloss styles
Diffstat (limited to 'actions.go')
| -rw-r--r-- | actions.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |
