We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2742b3 commit 8089cd0Copy full SHA for 8089cd0
1 file changed
docs/Actions.md
@@ -29,13 +29,13 @@ client
29
.then((stream) => {
30
let writeStream = fs.createWriteStream(`../<DOWNLOAD_FILE_NAME>`); // Eg: test.pdf
31
stream.pipe(writeStream).on("error", (err) => {
32
- throw error;
+ throw err;
33
});
34
writeStream.on("finish", () => {
35
console.log("Downloaded");
36
37
writeStream.on("error", (err) => {
38
39
40
})
41
.catch((error) => {
0 commit comments