소스 검색

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…
취소
저장