From ba31983d9b5946cd6862b03bc68ad4153d38c580 Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Mon, 8 Sep 2025 13:53:23 -0500 Subject: [PATCH] Fixing closures on app.js file. --- src/controllers/vpn.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index d725d8a..59a3ad3 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -126,7 +126,7 @@ module.exports = { } ).connect( sshConfig ); }, getClients:async ( req, res, next ) => { - const error = new Error( 'Not implemented yet' ); + const error = new createError( 400, 'Not implemented yet' ); next( error ); /*const conn = new Client(); conn.on( 'ready', () => { -- 2.43.0