Re-emit request errors when using `putFile`. Fixes #191.