voorhoede / head-start

Base setup on top of headless services to help you quickly start a new website
ISC License
3 stars 0 forks source link

Data fetching error from Dato not shown in development #149

Closed jurgenbelien closed 4 weeks ago

jurgenbelien commented 4 weeks ago

When a request fails, the data and error are destructured from the response object, but the logging function tries to stringify that response object again, instead of stringifying the error.

See https://github.com/voorhoede/head-start/blob/0de92d6a48232f7d1ddc4e7c3c9c0e326b4944de/src/lib/datocms.ts#L48