Skip to content

Commit 8089cd0

Browse files
lewgordonbaywetnikithauc
authored
Typo in documentation example. (#270)
Co-authored-by: Vincent Biret <vibiret@microsoft.com> Co-authored-by: nikithauc <nikithauc@gmail.com>
1 parent a2742b3 commit 8089cd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/Actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ client
2929
.then((stream) => {
3030
let writeStream = fs.createWriteStream(`../<DOWNLOAD_FILE_NAME>`); // Eg: test.pdf
3131
stream.pipe(writeStream).on("error", (err) => {
32-
throw error;
32+
throw err;
3333
});
3434
writeStream.on("finish", () => {
3535
console.log("Downloaded");
3636
});
3737
writeStream.on("error", (err) => {
38-
throw error;
38+
throw err;
3939
});
4040
})
4141
.catch((error) => {

0 commit comments

Comments
 (0)