aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-06-13 16:40:44 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-06-13 16:40:44 +0200
commite63bea9470112242d1583a4b91acf9409e22ce26 (patch)
treed293ea8c328c4a62b4f5950a41bbf160e73b65ca
parentconf: separate out migration (diff)
downloadwireguard-windows-e63bea9470112242d1583a4b91acf9409e22ce26.tar.xz
wireguard-windows-e63bea9470112242d1583a4b91acf9409e22ce26.zip
conf: check for file not found in addition to path
-rw-r--r--conf/migration_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/migration_windows.go b/conf/migration_windows.go
index ad7c1778..9c070a08 100644
--- a/conf/migration_windows.go
+++ b/conf/migration_windows.go
@@ -34,7 +34,7 @@ func maybeMigrate(c string) {
break
}
}
- if err == windows.ERROR_PATH_NOT_FOUND {
+ if err == windows.ERROR_PATH_NOT_FOUND || err == windows.ERROR_FILE_NOT_FOUND {
return
}
if err != nil {