DEV Community


Discussion on: Node Backend Server - Youtube GIF Maker Using Next.js, Node and RabbitMQ

imthedeveloper profile image

Out of interest, why do you catch errors to then throw them again in your code?

I'd assume removing the try/catch block has the same outcome

ragrag profile image
Raggi Author

Yes it would have the same outcome. Generally you'd leave them in some places where you might go back there and add some logic related to specific errors before throwing them