[RICPLT-2165] Expose Err of InternalError
Change-Id: I56c26db81dcab1a908277992c352078b5797fbd7
Signed-off-by: is005q <idan.shalom@intl.att.com>
diff --git a/common/internalError.go b/common/internalError.go
index 386c5e2..bb27b06 100644
--- a/common/internalError.go
+++ b/common/internalError.go
@@ -18,13 +18,13 @@
package common
type InternalError struct{
- err error
+ Err error
}
func NewInternalError(error error) error {
- return &InternalError{err:error}
+ return &InternalError{Err:error}
}
func (e InternalError) Error() string {
- return e.err.Error()
+ return e.Err.Error()
}
diff --git a/reader/go.mod b/reader/go.mod
index f35c31e..8a2df97 100644
--- a/reader/go.mod
+++ b/reader/go.mod
@@ -3,8 +3,8 @@
go 1.12
require (
- gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common v1.0.21
- gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities v1.0.21
+ gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common v1.0.22
+ gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities v1.0.22
gerrit.o-ran-sc.org/r/ric-plt/sdlgo v0.2.0
github.com/golang/protobuf v1.3.1
github.com/pkg/errors v0.8.1