diff --git a/Gruntfile.js b/Gruntfile.js index db01b44..7cbfd64 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -18,7 +18,8 @@ module.exports = function(grunt) { jshint: { all: [ 'Gruntfile.js', - 'client/src/**/*.js' + 'client/src/**/*.js', + 'server/**/*.js' ] }, diff --git a/client/src/xhr-provider.js b/client/src/xhr-provider.js index cce1e10..f822603 100644 --- a/client/src/xhr-provider.js +++ b/client/src/xhr-provider.js @@ -9,7 +9,7 @@ define(function(require) { } XHRContext.prototype.clear = function(callback) { // TODO: do we want to support clear? - callback(new Error('clear is not supported on XHRContext'); + callback(new Error('clear is not supported on XHRContext')); }; XHRContext.prototype.get = function(key, callback) { var request = new XMLHttpRequest(); diff --git a/server/routes.js b/server/routes.js index 4bc9998..ff26067 100644 --- a/server/routes.js +++ b/server/routes.js @@ -7,7 +7,7 @@ module.exports = function( knoxClient ) { version = require( "../package" ).version; function jsonError( res, code, msg, err ) { - res.json( code, error: { + res.json( code, { msg: msg, err: err }); @@ -60,7 +60,6 @@ module.exports = function( knoxClient ) { res.json( 200 ); }) .end( data ); - }); }, del: function( req, res ) { @@ -77,7 +76,6 @@ module.exports = function( knoxClient ) { res.json( 200 ); }) .end(); - }); }, healthcheck: function( req, res ) {