add error log

This commit is contained in:
pakintada@gmail.com 2024-03-19 12:08:24 +07:00
parent 58746ebdfb
commit 72187f348b
2 changed files with 6 additions and 3 deletions

View file

@ -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
}