Skip to content

Commit 79fe99d

Browse files
committed
Add additional detail when raising request error
1 parent 00aa9d8 commit 79fe99d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdap_access_manager/access_manager/async_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async def make_request(self, ri: RequestInfo, allow_retry: bool = True) -> Respo
139139
ri.headers = await self.jwt_header()
140140
return await self.make_request(ri, allow_retry=False)
141141
raise RequestError(
142-
message=f"Error making {ri.type_} request to {ri.url}",
142+
message=f"Error making {ri.type_} request to {ri.url}: {e.message}",
143143
status_code=HTTPStatus(e.status)
144144
) from e
145145

0 commit comments

Comments
 (0)