Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/cmd/go/internal/script/engine.go

    	if impl == nil {
    		return cmdError(cmd, errors.New("unknown command"))
    	}
    
    	async := impl.Usage().Async
    	if cmd.background && !async {
    		return cmdError(cmd, errors.New("command cannot be run in background"))
    	}
    
    	wait, runErr := impl.Run(s, cmd.args...)
    	if wait == nil {
    		if async && runErr == nil {
    			return cmdError(cmd, errors.New("internal error: async command returned a nil WaitFunc"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/shell.go

    		out = cgoTypeSigRe.ReplaceAllString(out, "C.")
    	}
    
    	// Usually desc is already p.Desc(), but if not, signal cmdError.Error to
    	// add a line explicitly mentioning the import path.
    	needsPath := importPath != "" && p != nil && desc != p.Desc()
    
    	err := &cmdError{desc, out, importPath, needsPath}
    	if cmdErr != nil {
    		// The command failed. Report the output up as an error.
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top