[TH] pass errorFn to unfold process so we can use it for its errors

Keep passing the errorFn down so that if we get deeper errors (in this case, not parsing the source file but in processing the db insert), we can similarly bail out and get error messages and stack traces.

Assigning to @cap10morgan