summaryrefslogtreecommitdiffstats
path: root/lib/adei/adei_error.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-28 18:24:40 +0100
committerSuren A. Chilingaryan <csa@suren.me>2019-10-28 18:24:40 +0100
commit2df6c231a41cae525f77a46e98ddf805f667ce5b (patch)
tree320b7739c47f3cb761d64c77774ab328fe096f38 /lib/adei/adei_error.sh
parentf4aeada37b662e2ff7bfc00eabeec06e6a7e3768 (diff)
downloadconky-2df6c231a41cae525f77a46e98ddf805f667ce5b.tar.gz
conky-2df6c231a41cae525f77a46e98ddf805f667ce5b.tar.bz2
conky-2df6c231a41cae525f77a46e98ddf805f667ce5b.tar.xz
conky-2df6c231a41cae525f77a46e98ddf805f667ce5b.zip
Fix error reporting on ADEI host unreachable
Diffstat (limited to 'lib/adei/adei_error.sh')
-rw-r--r--lib/adei/adei_error.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/adei/adei_error.sh b/lib/adei/adei_error.sh
index 9de4795..63657fe 100644
--- a/lib/adei/adei_error.sh
+++ b/lib/adei/adei_error.sh
@@ -27,7 +27,7 @@ function adei_print_error {
msg="Error communicating with $service"
ret=1
elif [ $code -eq 2 ]; then
- msg="ADEI host ($adei_host:$adei_port) unreachable"
+ msg="ADEI host ($adei_host:${adei_port:-80}) unreachable"
elif [ $code -eq 3 ]; then
msg="Timeout waiting for $service"
elif [ $code -eq 4 ]; then