Give user a tiny bit more context about their failure

Stephen Paul Weber created

Let them see the human readable failure description

Change summary

sgx-bwmsgsv2.rb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Detailed changes

sgx-bwmsgsv2.rb 🔗

@@ -1017,11 +1017,11 @@ class WebhookHandler < Goliath::API
 
 				# TODO: add 'errorCode' and/or 'description' val
 				# create an error reply to the bare message
-				msg = Blather::StanzaError.new(
-					msg,
+				msg = msg.as_error(
 					'recipient-unavailable',
-					:wait
-				).to_node
+					:wait,
+					jparams['description']
+				)
 
 				# TODO: make prettier: this should be done above
 				others_num = params['_json'][0]['to']