forked from TrueCloudLab/rclone
zoho: fix error when region isn't set
This commit is contained in:
parent
9e2e2bb5fc
commit
572c6ad601
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue