diff options
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 { |
