grassrootsgrocery / admin-portal

GNU Affero General Public License v3.0
10 stars 5 forks source link

API error message in server log doesn't show detail of error #163

Closed mattsahn closed 1 month ago

mattsahn commented 1 month ago

In cases where the server's Airtable API call fails, it attempts to log the error to STDOUT, but the actual error doesn't show up. The reason is that it is logging an object and Node just displays "[object Object]". This isn't helpful to understand the actual error, so the object needs to be expanded out. This can be done with JSON.stringify()

image