Skip to content

Commit 28644fa

Browse files
committed
typo fix
1 parent 79f9922 commit 28644fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

support/mqtt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ mqtt_error_handler () {
163163

164164
if [ -n "$received" ]; then
165165
#ERRORS
166-
[[ ${received^^} =~ .*NO ROUTE TO HOST.* ]] && return_value=1 && print_message="networking errors, no route to host - check username, password, and host address"
167-
[[ ${received^^} =~ .*CONNECTION REFUSED.* ]] && return_value=1 && print_message="mqtt broker refused connection - check username, password, and host address"
166+
[[ ${received^^} =~ .*"NO ROUTE TO HOST".* ]] && return_value=1 && print_message="networking errors, no route to host - check username, password, and host address"
167+
[[ ${received^^} =~ .*"CONNECTION REFUSED".* ]] && return_value=1 && print_message="mqtt broker refused connection - check username, password, and host address"
168168
[[ ${received^^} =~ .*NETWORK.* ]] && [[ ${received^^} =~ .*UNREACHABLE.* ]] && return_value=0 && print_message="network is down. enqueuing command to try again after a delay"
169-
[[ ${received^^} =~ .*LOOKUP ERROR.* ]] && return_value=0 && print_message="issue connecting to mqtt server (lookup error). enqueuing command to try again after a delay"
169+
[[ ${received^^} =~ .*"LOOKUP ERROR".* ]] && return_value=0 && print_message="issue connecting to mqtt server (lookup error). enqueuing command to try again after a delay"
170170

171171
if [ -n "$last_error_message" ] && [ "$last_error_message" == "$print_message" ]; then
172172
#HERE, WE HAVE A REPEATED ERROR

0 commit comments

Comments
 (0)