more error handling
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-23 17:13:34 +10:00
parent d8e7eb684f
commit e223922727

View File

@@ -211,7 +211,11 @@ func main() {
// So we can convert vCenter UTC to our local timezone
log.Printf("Setting timezone to '%s'\n", *vTZ)
location, _ = time.LoadLocation(*vTZ)
location, err = time.LoadLocation(*vTZ)
if err != nil {
fmt.Fprintf(os.Stderr, "Error setting timezone to %s : %s\n", *vTZ, err)
os.Exit(1)
}
u, err := url.Parse(*vURL)
if err != nil {