From ae610587c27f025a33f769398e7b9820a918cc68 Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Mon, 22 May 2023 11:37:14 +0100 Subject: [PATCH] updates --- package.json | 2 +- utils/post.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index eb6d051..8b1131e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.18", + "version": "1.1.19", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/utils/post.js b/utils/post.js index 178eaa6..67cdac6 100644 --- a/utils/post.js +++ b/utils/post.js @@ -115,6 +115,11 @@ module.exports = async function ({ key, query, database }) { ); httpsRequest.write(reqPayload); + + httpsRequest.on("error", (error) => { + console.log("HTTPS request ERROR =>", error); + }); + httpsRequest.end(); });