mapbox/tilemill — Issue #1034: Report S3 errors better
Author: lxbarth
Created: 2011-12-20 13:25:15+00:00
State: open

When the S3 upload fails, we pass on a pretty cryptic error message at the moment, only containing the HTTP status code. If we included the S3 error code and the S3 error message errors would be much quicker to identify.

I've got here [1] a first shot that will currently break node v0.4.x. Large uploads seem to trigger an assert error brought about by a `Socket.destroySoon()` that doesn't destroy soon [2].

[1] https://github.com/mapbox/tilemill/commit/9cfd9326bb71f98cb494ce9ccc1933ef36b2e656#commitcomment-809259
[2] https://github.com/joyent/node/issues/1892