mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-13 05:50:27 +00:00
Fix the migrator failing at wikis with no .myco files
This commit is contained in:
parent
242dd462ea
commit
16114f5e83
@ -86,6 +86,11 @@ func MigrateRocketsMaybe() {
|
|||||||
_ = file.Close()
|
_ = file.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(mycoFiles) == 0 {
|
||||||
|
hop.Abort()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if hop.WithFiles(mycoFiles...).Apply().HasErrors() {
|
if hop.WithFiles(mycoFiles...).Apply().HasErrors() {
|
||||||
log.Fatal("Something went wrong when commiting rocket link migration: ", hop.FirstErrorText())
|
log.Fatal("Something went wrong when commiting rocket link migration: ", hop.FirstErrorText())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user