Created by: maartenth
Errors in forward requests were not handled. This caused my process to exit after an ECONNREFUSED
.
Errors in target request and the original request were already properly handled. I added forward request error handling the same way.
Added a test case proving the fix.