I am working on improved logging in pnpm. When a request fails, I want to print something like:
WARN GET <URL> error (500). Will retry in 16 seconds. 2 retries left.
I can calculate how many retries are left but I can't know how long the retry will wait. So it would be great if the retry function would return timeout instead of true here:
I am working on improved logging in pnpm. When a request fails, I want to print something like:
I can calculate how many retries are left but I can't know how long the retry will wait. So it would be great if the retry function would return
timeoutinstead oftruehere:node-retry/lib/retry_operation.js
Line 92 in c402d77