Exemplo n.º 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
}
Exemplo n.º 2
0
Arquivo: cpg.go Projeto: jsgf/gorosync
func (e Error) Error() string {
	return e.msg + " failed: " + C.GoString(C.cs_strerror(e.cserr))
}