1
0
forked from MTSR/mapserver

don't panic (just print the error and move along)

fixes #233
This commit is contained in:
BuckarooBanzay 2022-01-20 21:04:12 +01:00
parent 6568d6526a
commit 2c90c94c65
2 changed files with 3 additions and 2 deletions

View File

@ -54,7 +54,7 @@ func (a *MapBlockAccessor) FindNextLegacyBlocks(s settings.Settings, layers []*l
"z": block.Pos.Z,
"err": err,
}
logrus.WithFields(fields).Error("mapblock-pars")
logrus.WithFields(fields).Error("mapblock-parse")
return nil, err
}

View File

@ -21,7 +21,8 @@ func initialRender(ctx *app.App) {
result, err := ctx.MapBlockAccessor.FindNextLegacyBlocks(ctx.Settings, ctx.Config.Layers, ctx.Config.RenderingFetchLimit)
if err != nil {
panic(err)
logrus.Error("Error in initial rendering run, trying to continue: " + err.Error())
continue
}
if len(result.List) == 0 && !result.HasMore {