From a9ffe0ca31d223097b588e0dc833fb5d91e218da Mon Sep 17 00:00:00 2001 From: yoyoo Date: Thu, 18 Aug 2022 23:23:23 +0900 Subject: [PATCH] :bug: Bug : return controller error handling#90 --- backend/controller/returnController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/controller/returnController.js b/backend/controller/returnController.js index 61f0ac9..b0198eb 100644 --- a/backend/controller/returnController.js +++ b/backend/controller/returnController.js @@ -17,6 +17,8 @@ const getReturn = async (req, res) => { return sendResponse(res, {}, 400); } return sendResponse(res, cabinetInfo, 200); + } catch (err) { + return sendResponse(res, {}, 500); } finally { connection.release(); }