From a4a49c249eb20295e3b215b3d4e415547e556add Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Sat, 11 Mar 2023 00:07:05 -0500 Subject: [PATCH] revert error message to original format --- pomice/pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomice/pool.py b/pomice/pool.py index 9438fdf..8106bc1 100644 --- a/pomice/pool.py +++ b/pomice/pool.py @@ -279,7 +279,7 @@ class Node: async with self._session.request(method=method, url=uri, headers=self._headers, json=data or {}) as resp: if resp.status >= 300: 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: return await resp.json(content_type=None)