From b0419a695df53df4cf269e6f848fcea9b697ccd5 Mon Sep 17 00:00:00 2001 From: Wen Bo Li <50884368+wenovus@users.noreply.github.com> Date: Mon, 23 Nov 2020 15:36:26 -0500 Subject: [PATCH] Improve Error Message for findMappableEntities (#472) * Improve Error Message for findMappableEntities * Update workflow --- .github/workflows/go.yml | 2 +- ygen/codegen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5e8c2ea34..bb3a63f3c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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' diff --git a/ygen/codegen.go b/ygen/codegen.go index 33d34219f..871098075 100644 --- a/ygen/codegen.go +++ b/ygen/codegen.go @@ -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