Skip to content

Commit

Permalink
fix: minor adjustements
Browse files Browse the repository at this point in the history
  • Loading branch information
FritzHoing committed Mar 11, 2024
1 parent ea1d806 commit 50fd4a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dataset-archive/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ const archiveWorker = async (workerJob, inputs) => {
await fs.access(dirToArchive);
canAccess = true;
} catch (error) {
logger.warn(`Error: ${error}`);
logger.warn(`Could not access ${dirToArchive} because of the following error: ${error}`);
canAccess = false;
}
if (!canAccess) {
await fs.mkdir(dirToArchive);
logger.info(`New archive directory created`);
logger.info('New archive directory created');
}
try {
await fs.copyFile(
Expand All @@ -82,7 +82,7 @@ const archiveWorker = async (workerJob, inputs) => {
);
logger.info('Successful copy')
} catch (error) {
logger.error(`Did not copy because: ${error}`)
logger.error(`Could not copy: ${error}`)
}


Expand Down

0 comments on commit 50fd4a3

Please sign in to comment.