Skip to content

1.2.0

Choose a tag to compare

@RISCfuture RISCfuture released this 17 May 23:45
· 22 commits to main since this release
17a9d98

Added

  • LZMAError.ioFailure(operation:code:) and XZError.ioFailure(operation:code:), carrying the raw POSIX errno from a failed read/write syscall
  • CustomNSError conformance on LZMAError and XZError: an ioFailure now bridges to an NSError whose NSUnderlyingErrorKey is an NSPOSIXErrorDomain error, so callers can detect conditions such as ENOSPC (disk full) by type instead of parsing error strings

Changed

  • FileHandle streaming read/write syscall failures now throw ioFailure(operation:code:) instead of internalError(_:) with a preformatted string. The human-readable description/failureReason text is unchanged, but code that exhaustively switches over LZMAError/XZError will need to handle the new case (@unknown default recommended)