Skip to content

Commit

Permalink
feat: 指标类型提示信息优化 TencentBlueKing#5326
Browse files Browse the repository at this point in the history
  • Loading branch information
JamiKX1 committed Oct 14, 2021
1 parent 0f8ae5c commit 85006e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
package com.tencent.devops.quality.service.v2

import com.fasterxml.jackson.core.type.TypeReference
import com.tencent.devops.common.api.exception.OperationException
import com.tencent.devops.common.api.util.HashUtil
import com.tencent.devops.common.api.util.JsonUtil
import com.tencent.devops.common.quality.pojo.enums.QualityOperation
Expand Down Expand Up @@ -115,7 +116,7 @@ class QualityRuleBuildHisService constructor(
}
}
}
throw IllegalArgumentException("指标[${requestIndicator.enName}]值类型为[${indicator.thresholdType}]," +
throw OperationException("指标[${requestIndicator.enName}]值类型为[${indicator.thresholdType}]," +
"请修改红线阈值[${requestIndicator.threshold}]")
}

Expand Down

0 comments on commit 85006e4

Please sign in to comment.