- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for cmdError (0.09 sec)
-
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) -
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) -
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)