Investigate how errors are caught, handled, or thrown in database/tiny/controller.js.
Then investigate the databaseTiny usages in the following files
- classes/Layer/Layer.js
- classes/Page/Page.js
- classes/Line/Line.js
- utilities/shared.js
Errors should be caught, handled, and thrown forward consistently so that routes can respond to clients according to RESTful best practices.