mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +08:00
fix: check case validation
This commit is contained in:
@@ -129,8 +129,8 @@ func loadCasePostman(path string) (*CasePostman, error) {
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "load postman file failed")
|
||||
}
|
||||
if reflect.ValueOf(*casePostman).IsZero() {
|
||||
return nil, errors.New("invalid postman file")
|
||||
if casePostman.Items == nil {
|
||||
return nil, errors.New("invalid postman case file, missing items")
|
||||
}
|
||||
|
||||
return casePostman, nil
|
||||
|
||||
Reference in New Issue
Block a user