bug: fix some issues with rpc renaming.

This commit is contained in:
UpstreamData
2024-01-29 12:32:37 -07:00
parent c443170f78
commit 30cd8b5cfe
7 changed files with 22 additions and 21 deletions

View File

@@ -90,7 +90,7 @@ class BaseMinerRPCAPI:
if not validation[0]:
if not ignore_errors:
# validate the command succeeded
raise APIError(validation[1])
raise APIError(f"{command}: {validation[1]}")
if allow_warning:
logging.warning(
f"{self.ip}: API Command Error: {command}: {validation[1]}"