Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
refactor: log warning instead of an error if the binary is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
AssetKid authored Dec 7, 2019
1 parent 1898e8c commit 1ecca38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/get-binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const detailsPath = path.join(binPath, 'details')

module.exports = () => {
if (!existsSync(detailsPath)) {
return console.error('ERROR: unable to locate `youtube-dl` at ' + binPath)
return console.warn('WARNING: unable to locate `youtube-dl` at ' + binPath)
}

const details = JSON.parse(readFileSync(detailsPath))
Expand Down

0 comments on commit 1ecca38

Please sign in to comment.