ForestAdmin / lumber

Install Forest Admin in minutes.
https://www.forestadmin.com
MIT License
2.08k stars 106 forks source link

fix: :bug: generate agents that return JSON errors #455

Closed ghusse closed 4 years ago

ghusse commented 4 years ago

Linked to CU-6gmxhz

This PR introduces a new dependency forest-express which was previously implied on generated projects by forest-express-{mongodb|sequelize}.

The generated app.js file now uses the errorHandler, exposed by forest-express (see https://github.com/ForestAdmin/forest-express/pull/462), to be sure that error are correctly serialized.

Pull Request checklist:

arnaudbesnier commented 4 years ago

Task linked: CU-6gmxhz P3 - Record Update - Error is in HTML instead of JSON with mongo validator on model and custom routes

forest-bot commented 4 years ago

:tada: This PR is included in version 3.6.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket: