Skip to content

Commit

Permalink
error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Medhansh404 committed Dec 29, 2023
1 parent 690145d commit 02f00e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/folderUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function getTemporaryFolder(target: string = tmpdir()) {
if ((error as NodeError).code === `EEXIST`) {
continue;
} else if ((error as NodeError).code === `EACCES`) {
throw new UsageError(`Failed to create cache directory. Please ensure the user has write access to the target directory (${target}). If the user's home directory does not exist, create it first.`, {cause: error});
throw new UsageError(`Failed to create cache directory. Please ensure the user has write access to the target directory (${target}). If the user's home directory does not exist, create it first.`);
} else {
throw error;
}
Expand Down

0 comments on commit 02f00e2

Please sign in to comment.