-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I have this dumb error that I do all the time and the following helps me figure out what I've done. I have a number of set up functions that I don't really care about the results and they always seem to work when i don't use await. But then the context stays open past the test and I get a bunch of "Instance was deleted" errors.
I made this update to the HTTP client and now it tells me what it was trying to do when the error occurs and it helps me find my error.
if ('message' in resBody) {
console.error('PocketIC server encountered an error', resBody.message, init.path, init.body);
throw new Error(resBody.message);
}
Metadata
Metadata
Assignees
Labels
No labels