---
title: "Comment by Elias Soykat on \"Error Handling In NodeTS\" | Hashnode"
description: "Great article, but there is another problem raised. That is you can&#39;t overwrite the error message.. Like when user query with invalid email address than he"
url: "https://hashnode.com/posts/error-handling-in-nodejs/625a389852fb7bd53380e025/comment/625ad1ea2f84e0d4fc33d1f3"
---

[Discussion](https://hashnode.com/posts/error-handling-in-nodejs/625a389852fb7bd53380e025)

Comment [Error Handling In NodeTS](https://hashnode.com/posts/error-handling-in-nodejs/625a389852fb7bd53380e025)

[Elias Soykat](https://hashnode.com/@elias-soykat)

[Apr 16, 2022](https://hashnode.com/posts/error-handling-in-nodejs/625a389852fb7bd53380e025/comment/625ad1ea2f84e0d4fc33d1f3)

Great article, but there is another problem raised. That is you can't overwrite the error message..

Like when user query with invalid email address than he get an uncaught exception that you can't overwrite if you using this method.

[Muhammed ElFeqy](https://hashnode.com/@thefeqy)

[Apr 16, 2022](https://hashnode.com/posts/error-handling-in-nodejs/625a389852fb7bd53380e025/comment/625ad1ea2f84e0d4fc33d1f3#reply-625af9ce52fb7bd53380ee07)

Thanks You're right, but this is out of the article scope, the article is about avoiding try/catch blocks with an easier way, but we also can overwrite the error message easily, but we will keep it for the next article.

[Elias Soykat](https://hashnode.com/@elias-soykat)

[Apr 17, 2022](https://hashnode.com/posts/error-handling-in-nodejs/625a389852fb7bd53380e025/comment/625ad1ea2f84e0d4fc33d1f3#reply-625bc7f052fb7bd53380fadf)

[Muhammed ElFeqy](https://hashnode.com/@thefeqy)

Please share this article <3 I am eagerly waiting for this one

bro, could you share a template node express project where you use the best practices.

[Elias Soykat](https://hashnode.com/@elias-soykat)

[Apr 17, 2022](https://hashnode.com/posts/error-handling-in-nodejs/625a389852fb7bd53380e025/comment/625ad1ea2f84e0d4fc33d1f3#reply-625c41822f84e0d4fc33ec71)

[Muhammed ElFeqy](https://hashnode.com/@thefeqy)

hey bro, i am starting a node express project using your formula.

please give me your feedback for this pattern where i use another wrapper that call service (between route and controller i use service for my db connections)

i eageryl waiting for your feedback about this pattern, :)

[Muhammed ElFeqy](https://hashnode.com/@thefeqy)

[Apr 17, 2022](https://hashnode.com/posts/error-handling-in-nodejs/625a389852fb7bd53380e025/comment/625ad1ea2f84e0d4fc33d1f3#reply-625c6a4a52fb7bd5338109bc)

[Elias Soykat](https://hashnode.com/@elias-soykat) Sure, but I'm using Typescript. here you go: github.com/osclancer/node-ts

[Muhammed ElFeqy](https://hashnode.com/@thefeqy)

[Apr 17, 2022](https://hashnode.com/posts/error-handling-in-nodejs/625a389852fb7bd53380e025/comment/625ad1ea2f84e0d4fc33d1f3#reply-625c6a9252fb7bd5338109c2)

[Elias Soykat](https://hashnode.com/@elias-soykat) i also use services to be a data layer between my controllers & models
