MCPcopy Index your code
hub / github.com/cloudspannerecosystem/spanner-cli / ExitOnError

Method ExitOnError

cli.go:267–271  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

265}
266
267func (c *Cli) ExitOnError(err error) int {
268 c.Session.Close()
269 fmt.Fprintf(c.ErrStream, "ERROR: %s\n", err)
270 return exitCodeError
271}
272
273func (c *Cli) PrintInteractiveError(err error) {
274 fmt.Fprintf(c.OutStream, "ERROR: %s\n", err)

Callers 1

RunInteractiveMethod · 0.95

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected