If message is nil, give *something*

Stephen Paul Weber created

Change summary

lib/simple_swap.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

lib/simple_swap.rb 🔗

@@ -48,7 +48,7 @@ class SimpleSwap
 	def parse(req)
 		return req.response["address_from"] if req.response["address_from"]
 
-		raise req.response["message"]
+		raise req.response["message"] || "Error creating address"
 	end
 
 	def req(m, path, query: {}, body: nil)