Skip to content

Commit

Permalink
Read config file msg issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MaestroError committed Jul 23, 2022
1 parent ebcc7fb commit ba5923b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,10 @@ func (c *Config) parseJsonFile() {
// if we os.Open returns an error then handle it
if err != nil {
fmt.Println(err, "| Config file does not used")
} else {
fmt.Println("Config file used successfully")
}

fmt.Println("Config file used successfully")
// defer the closing of our jsonFile so that we can parse it later on
defer jsonFile.Close()

Expand Down

0 comments on commit ba5923b

Please sign in to comment.