mirror of https://github.com/tidwall/tile38.git
Typo in error messages
This commit is contained in:
parent
bfa35d5db9
commit
f7ba43360e
|
@ -106,7 +106,7 @@ func (server *Server) cmdSearchArgs(
|
||||||
fallthrough
|
fallthrough
|
||||||
case "circle":
|
case "circle":
|
||||||
if s.clip {
|
if s.clip {
|
||||||
err = errInvalidArgument("cannnot clip with " + ltyp)
|
err = errInvalidArgument("cannot clip with " + ltyp)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var slat, slon, smeters string
|
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)
|
s.obj = geojson.NewCircle(geometry.Point{X: lon, Y: lat}, meters, defaultCircleSteps)
|
||||||
case "object":
|
case "object":
|
||||||
if s.clip {
|
if s.clip {
|
||||||
err = errInvalidArgument("cannnot clip with object")
|
err = errInvalidArgument("cannot clip with object")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var obj string
|
var obj string
|
||||||
|
@ -272,7 +272,7 @@ func (server *Server) cmdSearchArgs(
|
||||||
})
|
})
|
||||||
case "get":
|
case "get":
|
||||||
if s.clip {
|
if s.clip {
|
||||||
err = errInvalidArgument("cannnot clip with get")
|
err = errInvalidArgument("cannot clip with get")
|
||||||
}
|
}
|
||||||
var key, id string
|
var key, id string
|
||||||
if vs, key, ok = tokenval(vs); !ok || key == "" {
|
if vs, key, ok = tokenval(vs); !ok || key == "" {
|
||||||
|
|
Loading…
Reference in New Issue