Fix error messages
This commit is contained in:
parent
cd3cb3c393
commit
2e88dbbfa7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue