DEV Community

loading...

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

Collapse
imthedeveloper profile image
ImTheDeveloper

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

Collapse
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