Send the error message to user when enabling canary feature fails. (#990)
* Send the error message to user when enabling canary feature fails. * Fix controller doesn’t reply canary error when promClient tries connect to invalid prometheus server
This commit is contained in:
committed by
Ta-Ching Chen
parent
89081b087b
commit
db5165e032
@@ -60,7 +60,7 @@ func canaryConfigCreate(c *cli.Context) error {
|
||||
|
||||
htTrigger, err := client.HTTPTriggerGet(m)
|
||||
if err != nil {
|
||||
util.CheckErr(err, "Trigger referenced in the canary config is not created")
|
||||
util.CheckErr(err, "find trigger referenced in the canary config")
|
||||
}
|
||||
|
||||
// check that the trigger has function reference type function weights
|
||||
|
||||
Reference in New Issue
Block a user