prosodyctl: check turn: More clearly indicate the error is from TURN server
authorMatthew Wild <mwild1@gmail.com>
Thu, 06 Oct 2022 11:12:57 +0100
changeset 12745 7b3deafb9162
parent 12744 f58c6ae5edc1
child 12746 126aefd2c4c6
prosodyctl: check turn: More clearly indicate the error is from TURN server
util/prosodyctl/check.lua
--- a/util/prosodyctl/check.lua	Tue Oct 04 12:04:43 2022 +0200
+++ b/util/prosodyctl/check.lua	Thu Oct 06 11:12:57 2022 +0100
@@ -155,7 +155,7 @@
 		result.error = "TURN server did not response to allocation request: "..err;
 		return result;
 	elseif alloc_response:is_err_resp() then
-		result.error = ("TURN allocation failed: %d (%s)"):format(alloc_response:get_error());
+		result.error = ("TURN server failed to create allocation: %d (%s)"):format(alloc_response:get_error());
 		return result;
 	elseif not alloc_response:is_success_resp() then
 		result.error = ("Unexpected TURN response: %d (%s)"):format(alloc_response:get_type());