mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-02-13 13:59:49 +02:00
Merge pull request #41 from bostelk/patch-3
Fix error check conditional
This commit is contained in:
commit
193b06b449
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user