Fix error messages

This commit is contained in:
LilyRose2798 2024-04-23 09:40:00 +10:00
parent cd3cb3c393
commit 2e88dbbfa7
1 changed files with 2 additions and 2 deletions

View File

@ -591,7 +591,7 @@
if (!privateRange) { if (!privateRange) {
fetch(`${apiUrl}/api/scandata/${curDate}/rtt/range/${encodeURIComponent(`${ipStr}/${subnet}`)}`).then(res => { fetch(`${apiUrl}/api/scandata/${curDate}/rtt/range/${encodeURIComponent(`${ipStr}/${subnet}`)}`).then(res => {
if (!res.ok) if (!res.ok)
throw new Error(`Error fetching scan data for range ${ipStr}`) throw new Error(`Error fetching rtt scan data for range ${ipStr}`)
return res.json() return res.json()
}).then(data => { }).then(data => {
const rtt = data?.rtt const rtt = data?.rtt
@ -604,7 +604,7 @@
if (isRange) if (isRange)
fetch(`${apiUrl}/api/scandata/${curDate}/density/range/${encodeURIComponent(`${ipStr}/${subnet}`)}`).then(res => { fetch(`${apiUrl}/api/scandata/${curDate}/density/range/${encodeURIComponent(`${ipStr}/${subnet}`)}`).then(res => {
if (!res.ok) if (!res.ok)
throw new Error(`Error fetching scan data for range ${ipStr}`) throw new Error(`Error fetching density scan data for range ${ipStr}`)
return res.json() return res.json()
}).then(data => { }).then(data => {
const density = data?.density const density = data?.density