From: is005q Date: Wed, 11 Sep 2019 09:25:07 +0000 (+0300) Subject: [RICPLT-2165] Expose Err of InternalError X-Git-Tag: common/v1.0.22 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=e8bf2a1385104b91e652ef248cd637217b56634f;p=ric-plt%2Fnodeb-rnib.git [RICPLT-2165] Expose Err of InternalError Change-Id: I56c26db81dcab1a908277992c352078b5797fbd7 Signed-off-by: is005q --- 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 @@ module gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/reader 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