コード例 #1
0
ファイル: engine.go プロジェクト: postfix/gapstone
func (e Errno) Error() string {
	s := C.GoString(C.cs_strerror(C.cs_err(e)))
	if s == "" {
		return fmt.Sprintf("Internal Error: No Error string for Errno %v", e)
	}
	return s
}
コード例 #2
0
ファイル: cpg.go プロジェクト: jsgf/gorosync
func (e Error) Error() string {
	return e.msg + " failed: " + C.GoString(C.cs_strerror(e.cserr))
}