This commit is contained in:
parent
0804c0aa74
commit
b5238e238e
|
|
@ -55,8 +55,11 @@ async function fetchSurfData() {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.code === 'ECONNREFUSED') {
|
if (error.code === 'ECONNREFUSED') {
|
||||||
console.error("❌ Database is not ready yet. Retrying in the next cycle...");
|
console.error("❌ Database is not ready yet. Retrying in the next cycle...");
|
||||||
|
} else if (error.response) {
|
||||||
|
console.error("Data:", error.response.data);
|
||||||
|
console.error("Status:", error.response.status);
|
||||||
} else {
|
} else {
|
||||||
console.error("❌ Fetch error:", error.message);
|
console.error("Error:", error.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue