set.go: opportunity for panic in writeCrons when there's an error form GetSite

Issue #174 resolved
Saxon Milton created an issue

If for some reason the call to GetSite fails and the returned site is nil, then the filling of the data structs Timezone field will cause a panic where the site.Timezone field is accessed. We should immediately write the template with an unset data struct and error messaged when either GetSite or GetCronsBySite fails.

Comments (1)

  1. Log in to comment