crave
Version:
Structure a node project your way with the ability to require models, controllers, or any file dynamically.
10 lines (7 loc) • 364 B
JavaScript
// ~> Controller
// This file can be used to simulate a user-driven error in Crave. By
// not exporting a function, this controller cannot be required properly
// by Crave. Instead of crashing, Crave should throw a user friendly message.
//
// To simulate this error, comment out the line below and start the server.
module.exports = function (app, config) { }