MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / raiseErrorf

Method raiseErrorf

cli/pkg/ssh_config/parser.go:29–32  ·  view source on GitHub ↗

Formats and panics an error message based on a token

(tok *token, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

27
28// Formats and panics an error message based on a token
29func (p *sshParser) raiseErrorf(tok *token, msg string, args ...interface{}) {
30 // TODO this format is ugly
31 panic(tok.Position.String() + ": " + fmt.Sprintf(msg, args...))
32}
33
34func (p *sshParser) raiseError(tok *token, err error) {
35 if err == ErrDepthExceeded {

Callers 2

parseStartMethod · 0.95
parseKVMethod · 0.95

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected