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 28, 2021
1 parent 0f7e71d commit 5c522ea
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.exception.ErrorCodeException
import com.tencent.devops.common.api.util.EnvUtils
import com.tencent.devops.common.api.util.HashUtil
Expand Down Expand Up @@ -130,7 +131,7 @@ class QualityRuleBuildHisService constructor(
}
}
}
throw IllegalArgumentException("指标[${requestIndicator.enName}]值类型为[${indicator.thresholdType}]," +
throw OperationException("指标[${requestIndicator.enName}]值类型为[${indicator.thresholdType}]," +
"请修改红线阈值[${requestIndicator.threshold}]")
}

Expand Down

0 comments on commit 5c522ea

Please sign in to comment.