A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(err): Properly handle unhandled errors
LinkinStar8e965adc784f
diff --git a/internal/migrations/init.go b/internal/migrations/init.goindex fed56b97..e1a6a829 100644--- a/internal/migrations/init.go+++ b/internal/migrations/init.go@@ -151,6 +151,9 @@ func initSiteInfo(engine *xorm.Engine, language, siteName, siteURL, contactEmailContent: string(loginConfigDataBytes),Status: 1,})+ if err != nil {+ return err+ }seoData := map[string]string{"robots": defaultSEORobotTxt + siteURL + "/sitemap.xml",