Skip to content

Commit

Permalink
fix: throw error after cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lightpohl committed May 9, 2020
1 parent ff0f520 commit 3cb52ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ let downloadVideo = async ({
if (fs.existsSync(outputPath)) {
fs.unlinkSync(outputPath);
}

throw error;
}
};

Expand Down

0 comments on commit 3cb52ff

Please sign in to comment.