Skip to content

Commit

Permalink
[chores] Improved error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Jul 24, 2021
1 parent ff2d98b commit 021307c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openwrt-openwisp-monitoring/files/monitoring.init
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ start_service() {
[ -n "$verify_ssl" ] && verify_ssl="--verify_ssl $verify_ssl"

if [ -z "$base_url" ]; then
logger -s "url is not set, please add it in /etc/config/openwisp" \
logger -s "url is not set, please add it to /etc/config/openwisp" \
-t openwisp_monitoring \
-p daemon.err
exit 1
fi

if [ -z "$uuid" ] || [ -z "$key" ]; then
logger -s "uuid or key is not set. please ensure openwisp_config is working fine." \
logger -s "uuid or key are not set, please add these to /etc/config/openwisp" \
-t openwisp_monitoring \
-p daemon.err
exit 1
Expand Down

0 comments on commit 021307c

Please sign in to comment.