瀏覽代碼

report error when unknown entity type appeared.

master
Patrick Peng Sun 8 年之前
父節點
當前提交
da3cc462b6
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      crmEntity.go

+ 2
- 2
crmEntity.go 查看文件

@@ -216,8 +216,6 @@ func crmFindEntityByID(entityType string, id string) (entity interface{}, err er
return
}
entity = e[0]
case "Account":
return
case "Livecast":
e := []crmdLiveCast{}
err = json.Unmarshal(*cs.List, &e)
@@ -225,6 +223,8 @@ func crmFindEntityByID(entityType string, id string) (entity interface{}, err er
return
}
entity = e[0]
default:
err = errors.New("unknown entity type " + entityType)
}
return
}

Loading…
取消
儲存