forked from MTSR/mapserver
mapblock error catch
This commit is contained in:
parent
0d5df2062a
commit
ae7cef3c5f
@ -99,7 +99,10 @@ func (this *Listener) OnEvent(eventtype string, o interface{}) {
|
|||||||
obj := v.onMapObject(x, y, z, block)
|
obj := v.onMapObject(x, y, z, block)
|
||||||
|
|
||||||
if obj != nil {
|
if obj != nil {
|
||||||
this.ctx.Objectdb.AddMapData(obj)
|
err := this.ctx.Objectdb.AddMapData(obj)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
this.ctx.WebEventbus.Emit("mapobject-created", obj)
|
this.ctx.WebEventbus.Emit("mapobject-created", obj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user