1
0
mirror of https://github.com/fumiama/terasu.git synced 2026-06-06 17:50:24 +08:00

feat: add more hint

This commit is contained in:
源文雨
2026-02-16 16:10:52 +08:00
parent cf15e14727
commit afa158937f

View File

@@ -17,8 +17,9 @@ func init() {
}
_, err := plugin.Open(TRSPluginFile)
if err != nil {
logrus.Warnln("[terasu.plugin] load", TRSPluginFile, "err:", err)
logrus.Warnln("[terasu.plugin] load ext", TRSPluginFile, "err:", err)
logrus.Warnln("[terasu.plugin] hint: ensure the main binary and plugin are built with identical flags (e.g. both use -trimpath -ldflags=\"-s -w\"), and avoid using 'go run'")
return
}
logrus.Infoln("[terasu.plugin] loaded ext", TRSPluginFile)
}