This commit is contained in:
Simon Martín 2018-08-10 14:39:32 +02:00
parent c0ea5be5d3
commit 735033faee

View File

@ -126,7 +126,7 @@ function handleCopyFrom (logger) {
})
.pipe(isGzip ? zlib.createGunzip() : new PassThrough())
.on('error', err => {
err.message = `Error while gunzipping: ${err.message}`
err.message = `Error while gunzipping: ${err.message}`;
metrics.end(null, err);
pgstream.emit('error', err);
})