Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cmdError (0.17 sec)

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

    // A CommandError describes an error resulting from attempting to execute a
    // specific command.
    type CommandError struct {
    	File string
    	Line int
    	Op   string
    	Args []string
    	Err  error
    }
    
    func cmdError(cmd *command, err error) *CommandError {
    	return &CommandError{
    		File: cmd.file,
    		Line: cmd.line,
    		Op:   cmd.name,
    		Args: cmd.args,
    		Err:  err,
    	}
    }
    
    func (e *CommandError) Error() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:10 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top