merge of Natalia - change rnib errors
[ric-plt/e2mgr.git] / E2Manager / handlers / e2_term_init_notification_handler.go
index cec0bfc..6cc88ae 100644 (file)
@@ -58,8 +58,8 @@ func (handler E2TermInitNotificationHandler) Handle(logger *logger.Logger, e2Ses
 
                if err := handler.ranReconnectionManager.ReconnectRan(nbIdentity.InventoryName); err != nil {
                        logger.Errorf("#E2TermInitNotificationHandler.Handle - Ran name: %s - connection attempt failure, error: %s", (*nbIdentity).GetInventoryName(), err.Error())
-                       rNibError, ok := err.(common.IRNibError)
-                       if !ok || rNibError.GetCode() != common.RESOURCE_NOT_FOUND {
+                       _, ok := err.(*common.ResourceNotFoundError)
+                       if !ok {
                                break
                        }
                }