[RICPLT-1703] - Reset Request - after acceptance
[ric-plt/e2mgr.git] / E2Manager / e2managererrors / wrong_state_error.go
index 4c53b2e..ea984ed 100644 (file)
@@ -23,11 +23,11 @@ type WrongStateError struct {
        Err BaseError
 }
 
-func NewWrongStateError(state string) *WrongStateError {
+func NewWrongStateError(activityName string, state string) *WrongStateError {
        return &WrongStateError{
                BaseError{
                        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) ,
                },
        }
 }