revert error message to original format

This commit is contained in:
cloudwithax 2023-03-11 00:07:05 -05:00
parent 834e5bde62
commit a4a49c249e
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ class Node:
async with self._session.request(method=method, url=uri, headers=self._headers, json=data or {}) as resp: async with self._session.request(method=method, url=uri, headers=self._headers, json=data or {}) as resp:
if resp.status >= 300: if resp.status >= 300:
data: dict = await resp.json() data: dict = await resp.json()
raise NodeRestException(f'Error fetching from Lavalink REST api: {resp.status} {resp.reason}: {data}') raise NodeRestException(f'Error fetching from Lavalink REST api: {resp.status} {resp.reason}: {data["message"]}')
if method == "DELETE" or resp.status == 204: if method == "DELETE" or resp.status == 204:
return await resp.json(content_type=None) return await resp.json(content_type=None)