mirror of
https://github.com/idanoo/go-flat-finder
synced 2025-07-01 21:52:18 +00:00
add error checking
This commit is contained in:
parent
b5d5f80b7d
commit
aa4b421528
2 changed files with 7 additions and 1 deletions
|
@ -32,7 +32,10 @@ func (c *LocalConfig) loadConfig() {
|
|||
}
|
||||
|
||||
// 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))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue