Skip to content

Commit

Permalink
cleaner-error-handling
Browse files Browse the repository at this point in the history
  • Loading branch information
prayanshchh committed Nov 12, 2024
1 parent 3bbf4e0 commit fc0ad07
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/resolvers/Post/creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ export const creator: PostResolvers["creator"] = async (parent) => {
email: decryptionResult.decrypted,
};
} catch (error) {
// Log the full error internally but don't expose details
console.error("[Creator Resolver] Decryption error:", error);
throw new Error("Unable to process user data");
}
}
Expand Down

0 comments on commit fc0ad07

Please sign in to comment.