Example #1
0
File: util.go Project: zhsj/elvish
func maybeThrow(err error) {
	if err != nil {
		util.Throw(err)
	}
}
Example #2
0
File: util.go Project: zhsj/elvish
func throw(e error) {
	util.Throw(e)
}
Example #3
0
File: util.go Project: zhsj/elvish
func throwf(format string, args ...interface{}) {
	util.Throw(fmt.Errorf(format, args...))
}
Example #4
0
func maybeThrow(e error) {
	if e != nil {
		util.Throw(e)
	}
}