Skip to content

Commit

Permalink
Update exit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
johackim committed Jun 17, 2018
1 parent e83a886 commit a99ad1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rdcli.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ program
link = await convertTorrent(arg, token);
} else {
console.log('Usage: rdcli <url|magnet|torrent>');
process.exit();
process.exit(1);
}

const unrestrictLink = await unrestrict(link, token);
Expand All @@ -56,7 +56,7 @@ program
});
} catch (e) {
console.error(`${chalk.red(e)}`);
process.exit();
process.exit(2);
}
})
.parse(process.argv);
Expand Down

0 comments on commit a99ad1e

Please sign in to comment.