Fix error messages
This commit is contained in:
parent
cd3cb3c393
commit
2e88dbbfa7
|
@ -591,7 +591,7 @@
|
|||
if (!privateRange) {
|
||||
fetch(`${apiUrl}/api/scandata/${curDate}/rtt/range/${encodeURIComponent(`${ipStr}/${subnet}`)}`).then(res => {
|
||||
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()
|
||||
}).then(data => {
|
||||
const rtt = data?.rtt
|
||||
|
@ -604,7 +604,7 @@
|
|||
if (isRange)
|
||||
fetch(`${apiUrl}/api/scandata/${curDate}/density/range/${encodeURIComponent(`${ipStr}/${subnet}`)}`).then(res => {
|
||||
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()
|
||||
}).then(data => {
|
||||
const density = data?.density
|
||||
|
|
Loading…
Reference in New Issue