From f7ba43360e4031be1e59be90be2fc96140122a47 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Fri, 8 Feb 2019 13:56:07 -0800 Subject: [PATCH] Typo in error messages --- internal/server/search.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/server/search.go b/internal/server/search.go index 2788107f..9315d77a 100644 --- a/internal/server/search.go +++ b/internal/server/search.go @@ -106,7 +106,7 @@ func (server *Server) cmdSearchArgs( fallthrough case "circle": if s.clip { - err = errInvalidArgument("cannnot clip with " + ltyp) + err = errInvalidArgument("cannot clip with " + ltyp) return } var slat, slon, smeters string @@ -158,7 +158,7 @@ func (server *Server) cmdSearchArgs( s.obj = geojson.NewCircle(geometry.Point{X: lon, Y: lat}, meters, defaultCircleSteps) case "object": if s.clip { - err = errInvalidArgument("cannnot clip with object") + err = errInvalidArgument("cannot clip with object") return } var obj string @@ -272,7 +272,7 @@ func (server *Server) cmdSearchArgs( }) case "get": if s.clip { - err = errInvalidArgument("cannnot clip with get") + err = errInvalidArgument("cannot clip with get") } var key, id string if vs, key, ok = tokenval(vs); !ok || key == "" {