MCPcopy Create free account
hub / github.com/Masterminds/glide / Die

Method Die

msg/msg.go:120–126  ·  view source on GitHub ↗

Die prints an error message and immediately exits the application. If PanicOnDie is set to true a panic will occur instead of os.Exit being called.

(msg string, args ...interface{})

Source from the content-addressed store, hash-verified

118// If PanicOnDie is set to true a panic will occur instead of os.Exit being
119// called.
120func (m *Messenger) Die(msg string, args ...interface{}) {
121 m.Err(msg, args...)
122 if m.PanicOnDie {
123 panic("trapped a Die() call")
124 }
125 os.Exit(m.ecode)
126}
127
128// Die prints an error message and immediately exits the application using the
129// Default Messenger. If PanicOnDie is set to true a panic will occur instead of

Callers 15

PromptUntilYorNMethod · 0.95
SetupFunction · 0.80
startLockFunction · 0.80
DieFunction · 0.80
ConfigWizardFunction · 0.80
wizardAskRangeFunction · 0.80
CacheClearFunction · 0.80
TreeFunction · 0.80
EnsureConfigFunction · 0.80
EnsureVendorDirFunction · 0.80
EnsureGopathFunction · 0.80
UpdateFunction · 0.80

Calls 1

ErrMethod · 0.95

Tested by

no test coverage detected