Skip to content

Commit

Permalink
chore: log error message
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Dec 19, 2024
1 parent 8f42687 commit 0958f0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/debug/perserveFilesForDebugging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export function perserveFilesForDebugging(

const timestamp = new Date().toISOString();
const errorMessage = `${timestamp} - ${err.name}: \n${err.message}\n${err.stack}`;
console.info(errorMessage);
fs.writeFileSync(`${debugDirectory}/error.txt`, errorMessage);

uploadedFiles.forEach((file, index) => {
Expand Down

0 comments on commit 0958f0a

Please sign in to comment.