Update error return position according to convention

This commit is contained in:
onee-only
2024-03-04 12:56:41 +09:00
committed by Junegunn Choi
parent 8061a2f108
commit 52210a57f0
3 changed files with 14 additions and 14 deletions

View File

@@ -829,7 +829,7 @@ func NewTerminal(opts *Options, eventBox *util.EventBox) *Terminal {
_, t.hasLoadActions = t.keymap[tui.Load.AsEvent()]
if t.listenAddr != nil {
err, port := startHttpServer(*t.listenAddr, t.serverInputChan, t.serverOutputChan)
port, err := startHttpServer(*t.listenAddr, t.serverInputChan, t.serverOutputChan)
if err != nil {
errorExit(err.Error())
}