浏览代码

修复抛出 error 没有填写具体值的问题

Signed-off-by: allan716 <[email protected]>
allan716 3 年之前
父节点
当前提交
2cb2137794
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      internal/backend/controllers/v1/jobs_things.go

+ 1 - 1
internal/backend/controllers/v1/jobs_things.go

@@ -56,7 +56,7 @@ func (cb ControllerBase) ChangeJobStatusHandler(c *gin.Context) {
 
 	bok, nowOneJob := cb.cronHelper.DownloadQueue.GetOneJobByID(desJobStatus.Id)
 	if bok == false {
-		err = errors.New("")
+		err = errors.New("GetOneJobByID failed, id=" + desJobStatus.Id)
 		return
 	}