Example #1
0
func udtErrDesc(appMsg string) (err error) {
	return fmt.Errorf("%s - UDT Error-%s:%d ", appMsg,
		C.GoString(C.udt_getlasterror_desc()), int(C.udt_getlasterror_code()))
}
Example #2
0
// lastError returns the last error as a Go string.
func lastError() error {
	return errors.New(C.GoString(C.udt_getlasterror_desc()))
}