Merge pull request #41 from bostelk/patch-3

Fix error check conditional
This commit is contained in:
Mitch Roote 2016-09-27 13:54:25 -04:00 committed by GitHub
commit 193b06b449

View File

@ -110,7 +110,7 @@ func rmModPack(modpack string) error {
func createModPackDir() error {
err := os.Mkdir(filepath.Join(config.FactorioDir, "modpacks"), 0775)
if err != nil && os.IsNotExist(err) {
if err != nil && !os.IsExist(err) {
log.Printf("Could not create modpacks directory: %s", err)
return err
}