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 = [];