Struggling with Error Handling in Failable Effects

i'm struggling to creating effects which could fail. my desire is to yield* some sort of promise, try to grab the data, and catch any errors to handle in my api. although, when this program fails at const result... i cannot get it to log the failure step. (code inside)
Was this page helpful?