fix(xo-server): forward createOutputStream errors with checksum
This commit is contained in:
parent
28d1539ea6
commit
0c3b98d451
@ -187,7 +187,9 @@ export default class RemoteHandlerAbstract {
|
||||
}
|
||||
|
||||
const streamWithChecksum = addChecksumToReadStream(connectorStream)
|
||||
streamWithChecksum.pipe(await streamP)
|
||||
const stream = await streamP
|
||||
stream.on('error', forwardError)
|
||||
streamWithChecksum.pipe(stream)
|
||||
|
||||
streamWithChecksum.checksum
|
||||
.then(value => this.outputFile(`${file}.checksum`, value))
|
||||
|
Loading…
Reference in New Issue
Block a user