fix(cli): Return config map errors to user when using osm policy command
@@ -114,7 +114,7 @@ func (cmd *trafficPolicyCheckCmd) checkTrafficPolicy(srcPod, dstPod *corev1.Pod)
// Check if permissive mode is enabled, in which case every meshed pod is allowed to communicate with each other
if permissiveMode, err := cmd.isPermissiveModeEnabled(); err != nil {
- return errors.Errorf("Error checking if permissive mode is enabled")
+ return errors.Errorf("Error checking if permissive mode is enabled: %s", err)
} else if permissiveMode {
fmt.Fprintf(cmd.out, "[+] Permissive mode enabled for mesh operated by osm-controller running in '%s' namespace\n\n "+
"[+] Pod '%s/%s' is allowed to communicate to pod '%s/%s'\n",
