From d7bcffa38e884fff3e0a188beb41c2e37690c38c Mon Sep 17 00:00:00 2001 From: william Date: Fri, 29 Jan 2016 17:23:50 -0500 Subject: [PATCH] stop --- routes/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/index.js b/routes/index.js index 780f0f1..138ef40 100644 --- a/routes/index.js +++ b/routes/index.js @@ -56,9 +56,9 @@ router.get('/clone/:template/:name', function(req, res, next){ }); router.get('/destroy/:name', function(req, res, next){ - lxc.destroy(req.params.name, function(data, message){ + lxc.destroy(req.params.name, function(data){ if(data){ - res.json({status: 500, message: message}); + res.json({status: 500, message: data}); }else{ res.json({status: 200}); }