From a0574ab915c3ee63c2095d657ca18aecc1d53491 Mon Sep 17 00:00:00 2001
From: Nathan Woodburn <github@nathan.woodburn.au>
Date: Fri, 7 Mar 2025 14:28:18 +1100
Subject: [PATCH] fix: Add better error message

---
 hnslinks.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hnslinks.py b/hnslinks.py
index b4f82de..7f5f027 100644
--- a/hnslinks.py
+++ b/hnslinks.py
@@ -190,8 +190,8 @@ def hnslinks(params, authentication):
     
     # Sign message hns-links
     response = account.signMessage(authentication,domain,"hns-links")
-    if "error" in response:
-        return {"status": "Error signing message"}
+    if "error" in response and response["error"] != False:
+        return {"status": f"Error: {response['error']}"}
     return {"status": response}