jaysylvester / citizen

Node.js MVC web application framework. Includes routing, serving, caching, session management, and other helpful tools.
MIT License
100 stars 7 forks source link

Missing view: throw an error or log a warning? #129

Open jaysylvester opened 3 months ago

jaysylvester commented 3 months ago

citizen currently throws an error if the controller's specified view doesn't exist. If the controller is meant to perform an action and not render a view, setting view: false in the return statement bypasses that error.

Should the default behavior for a missing view be to log a warning instead of throwing a 500?