Skip to content

Commit

Permalink
Pass response message on error
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-russell committed Dec 15, 2023
1 parent 9cdc2e0 commit d4a16c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fractal/matrix/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def get_latest_sync_token(self, room_id: Optional[str] = None) -> str:
)
if not isinstance(res, RoomMessagesError):
return res.start
raise GetLatestSyncTokenError(self.room_id)
raise GetLatestSyncTokenError(res.message)

async def invite(self, user_id: str, room_id: str, admin: bool = False) -> None:
"""
Expand Down

0 comments on commit d4a16c3

Please sign in to comment.