Skip to content

Commit

Permalink
More error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzBlitz98 committed Sep 10, 2017
1 parent 1d762b5 commit 1634d34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@
firstPrompt(options);
});

} else if(data[number].torrent_site == null && data[number].torrent_link == null){
console.log(chalk.red("There was no torrent provided"));
firstPrompt(options);
}

}
Expand Down

0 comments on commit 1634d34

Please sign in to comment.