From 44b3f168a061bf7397716f4d325e0b5a2fde6db0 Mon Sep 17 00:00:00 2001 From: Brian Whitney Date: Fri, 22 Nov 2024 16:05:19 -0800 Subject: [PATCH] comment resolution --- packages/core/services/FileService/HttpFileService/index.ts | 2 +- packages/core/state/interaction/logics.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/services/FileService/HttpFileService/index.ts b/packages/core/services/FileService/HttpFileService/index.ts index d917c048..ba29e972 100644 --- a/packages/core/services/FileService/HttpFileService/index.ts +++ b/packages/core/services/FileService/HttpFileService/index.ts @@ -145,7 +145,7 @@ export default class HttpFileService extends HttpServiceBase implements FileServ "Content-Type": "application/json", "X-User-Id": username || "anonymous", }; - console.log(requestUrl, requestBody, headers); + try { const cacheStatuses = await this.rawPut<{ cacheFileStatuses: { [fileId: string]: string }; diff --git a/packages/core/state/interaction/logics.ts b/packages/core/state/interaction/logics.ts index 58e0d466..3bcacc95 100644 --- a/packages/core/state/interaction/logics.ts +++ b/packages/core/state/interaction/logics.ts @@ -592,7 +592,7 @@ const moveFilesLogic = createLogic({ // TODO: What to do with the status console.log("Cache statuses:", cacheStatuses); } catch (err) { - console.error(`Error encountered while moving files: ${err}`); + throw new Error(`Error encountered while moving files: ${err}`); } finally { done(); }