diff --git a/fetcher/index.js b/fetcher/index.js index c9b789f..f2e3e35 100644 --- a/fetcher/index.js +++ b/fetcher/index.js @@ -55,8 +55,11 @@ async function fetchSurfData() { } catch (error) { if (error.code === 'ECONNREFUSED') { 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 { - console.error("❌ Fetch error:", error.message); + console.error("Error:", error.message); } } }