---
title: "Comment by Salah Assi on \"Error Handling In NodeTS\" | Hashnode"
description: "Well, congrats you got rid of try/catch but you got another issue which is you can&#39;t change either the error code or the error message. Basically, when you"
url: "https://hashnode.com/posts/error-handling-in-nodejs/625a389852fb7bd53380e025/comment/625b31852f84e0d4fc33d8d7"
---

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

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

[Salah Assi](https://hashnode.com/@salahassi)

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

Well, congrats you got rid of try/catch but you got another issue which is you can't change either the error code or the error message. Basically, when you design a software to fullfil business needs, you need to be flexible, you should care about returning the right message and code more than using try/catch.

Thanks anyway 😅

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

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

Thank you, someone already commented about this but as i said it's out of the article scope, so i will either edit the article or write another one for this particular issue. If you need a solution you can checkout my node-ts kit you'll fine out what you seek. Here it is: [github.com/osclancer/node-ts](https://github.com/osclancer/node-ts) Thanks again ♥️
