fix: Add better error message

This commit is contained in:
2025-03-07 14:28:18 +11:00
parent 9c3e08fa32
commit a0574ab915

View File

@@ -190,8 +190,8 @@ def hnslinks(params, authentication):
# Sign message hns-links # Sign message hns-links
response = account.signMessage(authentication,domain,"hns-links") response = account.signMessage(authentication,domain,"hns-links")
if "error" in response: if "error" in response and response["error"] != False:
return {"status": "Error signing message"} return {"status": f"Error: {response['error']}"}
return {"status": response} return {"status": response}