mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-25 07:06:25 -08:00
debugging
This commit is contained in:
parent
cfd55d7230
commit
aeaa838b19
|
@ -347,7 +347,9 @@ export default class Files {
|
||||||
|
|
||||||
let dataStream = new Readable({
|
let dataStream = new Readable({
|
||||||
read(){
|
read(){
|
||||||
|
console.log(`Getting chunk ${position+1}/${attachments.length}`)
|
||||||
getNextChunk().then(async (nextChunk) => {
|
getNextChunk().then(async (nextChunk) => {
|
||||||
|
console.log(`Got chunk ${position+1}/${attachments.length}. It is ${nextChunk ? "not " : ""} null.`)
|
||||||
if (nextChunk == "__ERR") {this.destroy(new Error("file read error")); return}
|
if (nextChunk == "__ERR") {this.destroy(new Error("file read error")); return}
|
||||||
let response = this.push(nextChunk)
|
let response = this.push(nextChunk)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue