forwards-long-jump / discotron

Modular Discord bot supporting plugins hosted on git repositories
MIT License
3 stars 5 forks source link

Installer gets stuck in "Could not find given file." if something is accidentally entered #67

Closed Blatoy closed 5 years ago

Blatoy commented 5 years ago

This happens for the optional https question because the variable is not cleared when entering a wrong information.

Blatoy commented 5 years ago

The wrong variable is also used in the second check, making it display an error message when it should not:

 if (privateKey /* should be certificate */ !== undefined) {
                console.log("Could not find given file.");
            }