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

Method raiseError

cli/pkg/ssh_config/parser.go:34–40  ·  view source on GitHub ↗
(tok *token, err error)

Source from the content-addressed store, hash-verified

32}
33
34func (p *sshParser) raiseError(tok *token, err error) {
35 if err == ErrDepthExceeded {
36 panic(err)
37 }
38 // TODO this format is ugly
39 panic(tok.Position.String() + ": " + err.Error())
40}
41
42func (p *sshParser) run() {
43 for state := p.parseStart; state != nil; {

Callers 1

parseKVMethod · 0.95

Calls 2

StringMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected