~rafael/gembro

3c4876b897f9ef3292d712acdaeee250e8c31b16 — RafaĆ«l L. Bekkema 3 years ago d48a203
De-capitalize error message
1 files changed, 3 insertions(+), 3 deletions(-)

M tab.go
M tab.go => tab.go +3 -3
@@ 336,7 336,7 @@ func (tab Tab) loadURL(url string, addHist bool, level int, skipVerify bool) (Ta
		case "gopher":
			resp, err := gopher.LoadURL(ctx, *u)
			if err != nil {
				return LoadError{err: err, message: "Could not load URL", tab: tab.id, URL: u.String()}
				return LoadError{err: err, message: "could not load URL", tab: tab.id, URL: u.String()}
			}
			if addHist {
				tab.history.Add(u.String())


@@ 345,10 345,10 @@ func (tab Tab) loadURL(url string, addHist bool, level int, skipVerify bool) (Ta
		default: // gemini
			resp, err := tab.client.LoadURL(ctx, *u, skipVerify)
			if err := ctx.Err(); err != nil {
				return LoadError{err: err, message: "Could not load URL", tab: tab.id, URL: u.String()}
				return LoadError{err: err, message: "could not load URL", tab: tab.id, URL: u.String()}
			}
			if err != nil {
				return LoadError{err: err, message: "Could not load URL", tab: tab.id, URL: u.String()}
				return LoadError{err: err, message: "could not load URL", tab: tab.id, URL: u.String()}
			}
			if addHist && resp.Header.Status == 2 {
				tab.history.Add(u.String())