Skip to content

Commit

Permalink
Println takes variadic arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ADO committed May 24, 2017
1 parent d8f101e commit f4a61c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vsphere-influxdb.go
Expand Up @@ -705,15 +705,15 @@ func main() {
// read the configuration
file, err := os.Open(*cfgFile)
if err != nil {
errlog.Println("Could not open configuration file " + *cfgFile)
errlog.Println("Could not open configuration file", *cfgFile)
errlog.Println(err)
}

jsondec := json.NewDecoder(file)
config := Configuration{}
err = jsondec.Decode(&config)
if err != nil {
errlog.Println("Could not decode configuration file " + *cfgFile)
errlog.Println("Could not decode configuration file", *cfgFile)
errlog.Println(err)
}

Expand Down

0 comments on commit f4a61c4

Please sign in to comment.