handleError method

void handleError(
  1. Pointer<Utf8> error,
  2. Pointer<FFIBytesReturn> result
)

Implementation

void handleError(
    ffi.Pointer<Utf8> error, ffi.Pointer<FFIBytesReturn> result) {
  if (error.address != ffi.nullptr.address) {
    var message = fromUtf8(error);
    freeResult(result);
    throw new OpenPGPException(message);
  }
}