zoho: fix error when region isn't set

This commit is contained in:
buengese 2021-04-05 15:11:30 +02:00
parent 9eab258ffb
commit 0caf417779
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ type Object struct {
func setupRegion(m configmap.Mapper) {
region, ok := m.Get("region")
if !ok {
if !ok || region == "" {
log.Fatalf("No region set\n")
}
rootURL = fmt.Sprintf("https://workdrive.zoho.%s/api/v1", region)