1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 03:36:16 +00:00

Fix the migrator failing at wikis with no .myco files

This commit is contained in:
Timur Ismagilov 2022-02-03 23:24:38 +05:00
parent 242dd462ea
commit 16114f5e83

View File

@ -86,6 +86,11 @@ func MigrateRocketsMaybe() {
_ = file.Close()
}
if len(mycoFiles) == 0 {
hop.Abort()
return
}
if hop.WithFiles(mycoFiles...).Apply().HasErrors() {
log.Fatal("Something went wrong when commiting rocket link migration: ", hop.FirstErrorText())
}