Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions src/lib/flood-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ export async function getStation (stationId) {
console.log(`No station items found for ${stationId}`)
return null
} catch (error) {
console.error(`Error fetching station from ${url}:`, JSON.stringify({
name: error.name,
message: error.message,
cause: error.cause,
code: error.code,
errno: error.errno,
syscall: error.syscall
}, null, 2))
// Log everything on the error object
console.error(`Error fetching station from ${url}:`)
console.error('Error details:', error)
console.error('Error keys:', Object.keys(error))
console.error('Error cause:', error.cause)
if (error.cause) {
console.error('Cause keys:', Object.keys(error.cause))
console.error('Cause details:', JSON.stringify(error.cause, Object.getOwnPropertyNames(error.cause)))
}
return null
}
}
Expand Down