1
0
forked from MTSR/mapserver

panic if mapobject can't be written

This commit is contained in:
NatureFreshMilk 2019-03-21 15:44:34 +01:00
parent e0f748d46e
commit 0d5df2062a

View File

@ -67,7 +67,11 @@ func (this *Listener) OnEvent(eventtype string, o interface{}) {
if len(objs) > 0 {
for _, obj := range objs {
this.ctx.Objectdb.AddMapData(obj)
err := this.ctx.Objectdb.AddMapData(obj)
if err != nil {
panic(err)
}
this.ctx.WebEventbus.Emit("mapobject-created", obj)
}
}