Merge pull request #40 from bostelk/patch-2

Fix error check conditional
This commit is contained in:
Mitch Roote 2016-09-27 12:42:20 -04:00 committed by GitHub
commit bfc1e8fd1e

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 {
if err != nil && os.IsNotExist(err) {
log.Printf("Could not create modpacks directory: %s", err)
return err
}