mirror of
https://github.com/idanoo/go-flat-finder.git
synced 2024-12-04 06:03:16 +00:00
add error checking
This commit is contained in:
parent
b5d5f80b7d
commit
aa4b421528
@ -1,5 +1,8 @@
|
|||||||
# FlatFinder Bot
|
# FlatFinder Bot
|
||||||
|
|
||||||
|
[![Build Status](https://ci.tinker.nz/api/badges/idanoo/flat-finder/status.svg)](https://ci.tinker.nz/idanoo/flat-finder)
|
||||||
|
|
||||||
|
|
||||||
* Uses the Trade Me API to grab new rental properties that have been recently listed
|
* Uses the Trade Me API to grab new rental properties that have been recently listed
|
||||||
* Checks if fibre and VDSL are available by querying Chorus
|
* Checks if fibre and VDSL are available by querying Chorus
|
||||||
* Includes travel times to various locations
|
* Includes travel times to various locations
|
||||||
|
@ -32,7 +32,10 @@ func (c *LocalConfig) loadConfig() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load it into global
|
// Load it into global
|
||||||
json.Unmarshal(data, c)
|
err = json.Unmarshal(data, c)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
log.Printf("Loaded %d previously posted property IDs", len(c.PostedProperties))
|
log.Printf("Loaded %d previously posted property IDs", len(c.PostedProperties))
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user