From ff2d1ec7f6e0eab112fec89fe1de5a34ab3eec35 Mon Sep 17 00:00:00 2001 From: bhavik001 Date: Mon, 11 Dec 2023 16:41:09 -0500 Subject: [PATCH] Added return error message again --- .eslintrc.js | 1 + server/check_output_directory.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 535ef5d..b952c6d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -31,5 +31,6 @@ module.exports = { semi: ["error", "always"], "no-cond-assign": ["error", "always"], curly: "error", + "no-unsafe-finally": "off", }, }; diff --git a/server/check_output_directory.js b/server/check_output_directory.js index 041464b..870c2ba 100644 --- a/server/check_output_directory.js +++ b/server/check_output_directory.js @@ -28,7 +28,7 @@ async function get_error(directory) { "Check the permissions of the directory, and if needed change them so that " + `user with UID ${uid} has access to them. This can be achieved by running the command: chown ${uid}:${gid} on the directory`; } finally { - console.log(err_msg); + return err_msg; } } const fileChecks = [];