Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add Automation for E2T init
[ric-plt/e2mgr.git]
/
E2Manager
/
e2managererrors
/
wrong_state_error.go
diff --git
a/E2Manager/e2managererrors/wrong_state_error.go
b/E2Manager/e2managererrors/wrong_state_error.go
index
4c53b2e
..
7116785
100644
(file)
--- a/
E2Manager/e2managererrors/wrong_state_error.go
+++ b/
E2Manager/e2managererrors/wrong_state_error.go
@@
-20,18
+20,18
@@
package e2managererrors
import "fmt"
type WrongStateError struct {
import "fmt"
type WrongStateError struct {
-
Err
BaseError
+
*
BaseError
}
}
-func NewWrongStateError(state string) *WrongStateError {
+func NewWrongStateError(
activityName string,
state string) *WrongStateError {
return &WrongStateError{
return &WrongStateError{
- BaseError{
+
&
BaseError{
Code: 403,
Code: 403,
- Message: fmt.Sprintf("
The RAN state <%s> isn’t in the appropriate state."
, state) ,
+ Message: fmt.Sprintf("
Activity %s rejected. RAN current state %s does not allow its execution ", activityName
, state) ,
},
}
}
func (e *WrongStateError) Error() string {
},
}
}
func (e *WrongStateError) Error() string {
- return e.
Err.
Message
+ return e.Message
}
}