Skip to content

Commit

Permalink
Improve Error Message for findMappableEntities (#472)
Browse files Browse the repository at this point in the history
* Improve Error Message for findMappableEntities

* Update workflow
  • Loading branch information
wenovus authored Nov 23, 2020
1 parent 40bb873 commit b0419a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Install protobuf
uses: arduino/setup-protoc@v1.1.0
uses: arduino/setup-protoc@v1
with:
version: '3.x'

Expand Down
2 changes: 1 addition & 1 deletion ygen/codegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ func findMappableEntities(e *yang.Entry, dirs map[string]*yang.Entry, enums map[
case ch.Kind == yang.AnyDataEntry:
continue
default:
errs = util.AppendErr(errs, fmt.Errorf("unknown type of entry %v in findMappableEntities for %s", e.Kind, e.Path()))
errs = util.AppendErr(errs, fmt.Errorf("unknown type of entry %v in findMappableEntities for %s", ch.Kind, ch.Path()))
}
}
return errs
Expand Down

0 comments on commit b0419a6

Please sign in to comment.