Skip to main content

Timeline for Parsing fetched data in TypeScript

Current License: CC BY-SA 4.0

4 events
when toggle format what by license comment
Dec 30, 2023 at 8:06 comment added Magnus Jeffs Tovslid Yes, you can put the finally part before then and catch. It will then run before the catch block, but still pass the error transparently. One thing to look out for is that the disconnect can also throw, so the original error may be masked by this if it happens.
Dec 27, 2023 at 11:15 comment added eloy Thanks a lot for your help! Small question about your point about using 'finally', specifically if used for the DB disconnection part: is there a way to deal with the process.exit part, which should only happen in the catch block after the DB disconnected?
Dec 27, 2023 at 8:39 vote accept eloy
Dec 26, 2023 at 17:41 history answered Magnus Jeffs Tovslid CC BY-SA 4.0