From 9bd6a55b621d1affcb2355ee9dbd9865c35e4f41 Mon Sep 17 00:00:00 2001 From: Thomas Rademaker Date: Tue, 24 Mar 2026 10:41:10 -0400 Subject: [PATCH] better error handling --- Sources/bskyKit/BskyService.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/bskyKit/BskyService.swift b/Sources/bskyKit/BskyService.swift index 610e03d..5af457d 100644 --- a/Sources/bskyKit/BskyService.swift +++ b/Sources/bskyKit/BskyService.swift @@ -404,7 +404,11 @@ public struct BskyService: Sendable { /// - Parameter date: The timestamp to mark as seen (default: now). /// - Throws: An error if not authenticated or the request fails. public func updateSeen(at date: Date = Date()) async throws { - let _: EmptyResponse = try await execute(.updateSeen(seenAt: date)) + do { + let _: EmptyResponse = try await execute(.updateSeen(seenAt: date)) + } catch is DecodingError { + // updateSeen returns an empty body on success — decoding failure is expected + } } // MARK: - Chat -- 2.51.2