This commit is contained in:
Adria Navarro 2023-06-12 17:50:07 +01:00
parent ded738a566
commit 70798a6b93
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ function readBytes(stream: fs.ReadStream, length: number) {
reject(new Error("Insufficient data in the stream."))
})
stream.on("error", (error: any) => {
stream.on("error", error => {
reject(error)
})
})