mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
zoho: fix error when region isn't set
This commit is contained in:
parent
9eab258ffb
commit
0caf417779
@ -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…
Reference in New Issue
Block a user