Fixed api error handler for nsr delete 06/1806/1
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Wed, 10 May 2017 12:53:29 +0000 (08:53 -0400)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Wed, 10 May 2017 12:53:29 +0000 (08:53 -0400)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
skyquake/plugins/launchpad/routes.js

index f9d6ce7..06ee5da 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 
+ *
  *   Copyright 2016 RIFT.IO Inc
  *
  *   Licensed under the Apache License, Version 2.0 (the "License");
@@ -41,7 +41,7 @@ app.get('/api/nsr', cors(), function(req, res) {
         launchpadAPI['nsr'].delete(req).then(function(response) {
             utils.sendSuccessResponse(response, res);
         }, function(error) {
-            sendErrorResponse(error, res);
+            utils.sendErrorResponse(error, res);
         });
     });
     app.post('/api/nsr', cors(), function(req, res) {