Exemplo n.º 1
0
// Get the last pm_error
func (h Handle) LastError() error {
	if h.ptr != nil {
		c_err := C.alpm_errno(h.ptr)
		if c_err != 0 {
			return Error(c_err)
		}
	}
	return nil
}
Exemplo n.º 2
0
func (hand Handle) Error() error {
	return strerror(C.alpm_errno(hand.ptr))
}