From 83fbf9a91e5d59d32f7a61c7f787a69bdc857363 Mon Sep 17 00:00:00 2001 From: filoxenace Date: Sat, 7 Mar 2026 13:54:27 -0500 Subject: [PATCH] fix: include response body in publish_collectible auth error --- pyproject.toml | 2 +- src/rbx_upload/client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 175a0d3..002ede9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "rbx-upload" -version = "0.2.8" +version = "0.2.9" description = "Roblox asset upload client" requires-python = ">=3.13" dependencies = [ diff --git a/src/rbx_upload/client.py b/src/rbx_upload/client.py index f7cc013..2381170 100644 --- a/src/rbx_upload/client.py +++ b/src/rbx_upload/client.py @@ -297,7 +297,7 @@ class RobloxClient: if response.status_code == 429: raise RateLimitError("Rate limit hit during collectible publish.") if response.status_code in (401, 403): - raise AuthError("Not authorized to publish this collectible.") + raise AuthError(f"Not authorized to publish this collectible ({response.status_code}): {response.text}") response.raise_for_status() data = response.json()