add error log
This commit is contained in:
parent
58746ebdfb
commit
72187f348b
2 changed files with 6 additions and 3 deletions
|
|
@ -143,7 +143,7 @@ func LoadCountrySettingsWithPermissions() []CountryNamePerms {
|
|||
// read file country.settings.json
|
||||
content, err := os.Open("country.settings.json")
|
||||
if err != nil {
|
||||
fmt.Errorf("country.settings.json not found")
|
||||
fmt.Println(fmt.Errorf("country.settings.json not found"))
|
||||
}
|
||||
|
||||
// read content to json
|
||||
|
|
@ -151,7 +151,7 @@ func LoadCountrySettingsWithPermissions() []CountryNamePerms {
|
|||
err = json.NewDecoder(content).Decode(&countrySettings)
|
||||
|
||||
if err != nil {
|
||||
fmt.Errorf("error in country.settings")
|
||||
fmt.Println(fmt.Errorf("error in country.settings"))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue