tendermint/common/panic.go

16 lines
208 B
Go
Raw Normal View History

2014-06-17 01:28:43 -07:00
package common
2014-06-05 11:04:56 -07:00
import (
2014-07-01 14:50:24 -07:00
"fmt"
"os"
2014-06-05 11:04:56 -07:00
)
2014-06-18 20:48:07 -07:00
func Panicf(s string, args ...interface{}) {
2014-07-01 14:50:24 -07:00
panic(fmt.Sprintf(s, args...))
2014-06-05 11:04:56 -07:00
}
func Exitf(s string, args ...interface{}) {
fmt.Printf(s+"\n", args...)
os.Exit(1)
}