From 39a4dbdec712e93f88efc7748d880f8121525ba6 Mon Sep 17 00:00:00 2001 From: Daniele Sangalli <196739+daniel78uk@users.noreply.github.com> Date: Fri, 1 Dec 2023 09:40:39 +0000 Subject: [PATCH] fix: adding sonar config file --- server/utils/util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/utils/util.js b/server/utils/util.js index 938229f6..eea4bc02 100644 --- a/server/utils/util.js +++ b/server/utils/util.js @@ -8,7 +8,9 @@ const makeRequest = async (method, url, options, _ext = false) => { const { res, payload } = response if (res.statusCode !== 200) { + // NOSONAR const err = payload || new Error('Unknown error') + throw err }