diff --git a/routers/repo/grampus.go b/routers/repo/grampus.go index df56cfa94..14db1a50d 100755 --- a/routers/repo/grampus.go +++ b/routers/repo/grampus.go @@ -958,7 +958,7 @@ func GrampusStopJob(ctx *context.Context) { if task.Status == models.GrampusStatusStopped || task.Status == models.GrampusStatusFailed || task.Status == models.GrampusStatusSucceeded { log.Error("the job(%s) has been stopped", task.JobName, ctx.Data["msgID"]) resultCode = "-1" - errorMsg = "System error" + errorMsg = ctx.Tr("cloudbrain.Already_stopped") break } @@ -966,7 +966,7 @@ func GrampusStopJob(ctx *context.Context) { if err != nil { log.Error("StopJob(%s) failed:%v", task.JobName, err, ctx.Data["msgID"]) resultCode = strconv.Itoa(res.ErrorCode) - errorMsg = res.ErrorMsg + errorMsg = ctx.Tr("cloudbrain.Stopped_failed") break } oldStatus := task.Status