Testing Error Messages and looked nice :) [This commit fix the view not defined]
Testing Error Messages and looked nice :) [This commit fix the view not defined]

When getting a reference error (no view function was present) the error
message ir really informative not just a 500:

{
"code": 500,
"error": "Script generated an unhandled synchronous exception.",
"details": "ReferenceError: view is not defined",
"name": "ReferenceError",
"message": "view is not defined",
"stack": "ReferenceError: view is not defined\n    at module.exports
(git-push-hook.js:5:39)\n    at /data/server.js:523:33\n    at
/data/_verquire/async/1.0.0/node_modules/async/lib/async.js:763:21\n
at /data/_verquire/async/1.0.0/node_modules/async/lib/async.js:391:17\n
at iterate
(/data/_verquire/async/1.0.0/node_modules/async/lib/async.js:181:13)\n
at
/data/_verquire/async/1.0.0/node_modules/async/lib/async.js:192:25\n
at /data/_verquire/async/1.0.0/node_modules/async/lib/async.js:393:21\n
at
/data/_verquire/async/1.0.0/node_modules/async/lib/async.js:768:34\n
at async.series.context.data (/data/server.js:416:24)\n    at
/data/_verquire/async/1.0.0/node_modules/async/lib/async.js:763:21"
}

n4ch03/trello-github-power-up