diff --git a/back/lib/admin/peer/del b/back/lib/admin/peer/del index db1b36d..be5645e 100755 --- a/back/lib/admin/peer/del +++ b/back/lib/admin/peer/del @@ -55,13 +55,13 @@ fi # Filter out this user's user_peer="$(grep "${pubkey}" <<<"${wg_output}" 2>/dev/null)" if [ "${user_peer}" == "" ]; then - printf "ERROR! %s accessed the dashboard but isn't on the network!\n" "${ip}" >>"${LOGFILE}" + printf "ERROR! Could not find user for pubkey %s!\n" "${pubkey}" >>"${LOGFILE}" exit 8 fi # Get peer domains if ! peer="$("${LIB_DIR}/ips_to_peers" tsv <<<"${user_peer}" | grep "${pubkey}")"; then - printf 'ERROR! Peer %s not found!\n' "${pubkey}" >>"${LOGFILE}" & + printf 'ERROR! Failed to lookup domain for pubkey %s!\n' "${pubkey}" >>"${LOGFILE}" & printf 'Peer not found\n' | "${LIB_DIR}/http_res" 404 exit 6 fi