From 9fee5fcd6e108d77eb39a010ef99b906d31f2676 Mon Sep 17 00:00:00 2001 From: Birm Date: Thu, 9 Jan 2025 16:06:03 -0500 Subject: [PATCH] check response earlier --- common/PathdbMods.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/PathdbMods.js b/common/PathdbMods.js index eb9e0e51..aa5c608d 100644 --- a/common/PathdbMods.js +++ b/common/PathdbMods.js @@ -102,8 +102,9 @@ async function PathDbMods() { 'Authorization': 'Bearer ' + getCookie("token"), }) }).then(function(response) { + console.log(response); if (!response.ok) - console.log("response not ok", response.statusText) + console.log("response not ok", response.statusText); return { error: !response.ok, text: response.statusText, @@ -122,8 +123,9 @@ async function PathDbMods() { 'Authorization': 'Bearer ' + getCookie("token"), }) }).then(function(response) { + console.log(response); if (!response.ok) - console.log("response not ok", response.statusText) + console.log("response not ok", response.statusText); return { error: !response.ok, text: response.statusText,