diff --git a/cmd/galaxy/internal/logic/rtudeletelogic.go b/cmd/galaxy/internal/logic/rtudeletelogic.go index 528b46e..4f74d26 100644 --- a/cmd/galaxy/internal/logic/rtudeletelogic.go +++ b/cmd/galaxy/internal/logic/rtudeletelogic.go @@ -47,8 +47,8 @@ func (l *RtuDeleteLogic) RtuDelete(req types.String) error { } exists, err := l.svcCtx.RtuModel.GetExist() if err != nil { - logx.Error(e) - return e + logx.Error(err) + return err } jobs := make([]config.Job, 0, len(exists)) for _, i := range exists { diff --git a/cmd/galaxy/internal/logic/rturedologic.go b/cmd/galaxy/internal/logic/rturedologic.go index f1bb23e..be278cc 100644 --- a/cmd/galaxy/internal/logic/rturedologic.go +++ b/cmd/galaxy/internal/logic/rturedologic.go @@ -41,8 +41,8 @@ func (l *RtuRedoLogic) RtuRedo(req types.String) error { } exists, err := l.svcCtx.RtuModel.GetExist() if err != nil { - logx.Error(e) - return e + logx.Error(err) + return err } jobs := make([]config.Job, 0, len(exists)) for _, i := range exists { diff --git a/cmd/galaxy/internal/logic/rtustoplogic.go b/cmd/galaxy/internal/logic/rtustoplogic.go index a54b4d6..8169711 100644 --- a/cmd/galaxy/internal/logic/rtustoplogic.go +++ b/cmd/galaxy/internal/logic/rtustoplogic.go @@ -48,8 +48,8 @@ func (l *RtuStopLogic) RtuStop(req types.String) error { } exists, err := l.svcCtx.RtuModel.GetExist() if err != nil { - logx.Error(e) - return e + logx.Error(err) + return err } jobs := make([]config.Job, 0, len(exists)) for _, i := range exists {