keithtelliott / sidekicksammy.com

Helpful AI chatbot service
2 stars 0 forks source link

Catch potential fetch errors in checkLastJobStatus... #79

Closed keithtelliott closed 7 months ago

keithtelliott commented 7 months ago

…and return error object if needed.

My current Go-Do: Gracefully handle invalid corpus_id and source_id. At the moment, the script will throw a non-helpful error message.

KTE, 2/3/2024 Update: This Go-Do is in progress. I added a catch for errors which prevents error bubbling chaos. But, I'd like to add some TypeScript to clarify what the objects look like that are returned... so that's my next chunk of the Go-Do that I'll tackle next...