tile panic

This commit is contained in:
NatureFreshMilk 2019-02-21 13:15:49 +01:00
parent 2ec79a16cd
commit 3f3a9da23a

View File

@ -33,11 +33,11 @@ func (this *TileDB) GC() {
func (this *TileDB) GetTile(pos *coords.TileCoords) ([]byte, error) { func (this *TileDB) GetTile(pos *coords.TileCoords) ([]byte, error) {
_, file := this.getDirAndFile(pos) _, file := this.getDirAndFile(pos)
info, err := os.Stat(file) info, _ := os.Stat(file)
if info != nil && err == nil { if info != nil {
content, err := ioutil.ReadFile(file) content, err := ioutil.ReadFile(file)
if err != nil { if err != nil {
return nil, err panic(err)
} }
return content, err return content, err