fix error with undefined callback

This commit is contained in:
Matthew Conlen
2014-02-28 12:58:05 -05:00
parent 8064f7f0db
commit a2a9c8fd8a

View File

@@ -120,7 +120,7 @@ SocketAdmin.categories.create = function(socket, data, callback) {
SocketAdmin.categories.update = function(socket, data) { SocketAdmin.categories.update = function(socket, data) {
if(!data) { if(!data) {
return callback(new Error('invalid data')); throw new Error('invalid data');
} }
admin.categories.update(data, socket); admin.categories.update(data, socket);
@@ -380,4 +380,4 @@ SocketAdmin.groups.update = function(socket, data, callback) {
}); });
}; };
module.exports = SocketAdmin; module.exports = SocketAdmin;