Example #1
0
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
}
Example #2
0
File: cpg.go Project: jsgf/gorosync
func (e Error) Error() string {
	return e.msg + " failed: " + C.GoString(C.cs_strerror(e.cserr))
}