Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for transformToXTablesErrorMessage (0.22 sec)

  1. tools/istio-iptables/pkg/dependencies/implementation.go

    		return nil, fmt.Errorf("iptables version %q is not a valid version string: %v", match[1], err)
    	}
    	return version, nil
    }
    
    // transformToXTablesErrorMessage returns an updated error message with explicit xtables error hints, if applicable.
    func transformToXTablesErrorMessage(stderr string, err error) string {
    	ee, ok := err.(*exec.ExitError)
    	if !ok {
    		// Not common, but can happen if file not found error, etc
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 19:54:50 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. tools/istio-iptables/pkg/dependencies/implementation_linux.go

    		stderrStr := stderr.String()
    
    		// Transform to xtables-specific error messages with more useful and actionable hints.
    		if err != nil {
    			stderrStr = transformToXTablesErrorMessage(stderrStr, err)
    		}
    
    		log.Errorf("Command error output: %v", stderrStr)
    	}
    
    	return err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 12 20:49:10 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top