polish embedded scanner SDK contracts

This commit is contained in:
ZacharyZcR
2026-05-18 21:40:52 +08:00
parent 218811c38d
commit c15aa3488b
9 changed files with 490 additions and 55 deletions
+4 -1
View File
@@ -68,5 +68,8 @@ func main() {
defer common.CloseLogger()
// 执行扫描
core.RunScan(context.Background(), *result.Info, result.Session)
if _, err := core.RunScan(context.Background(), *result.Info, result.Session); err != nil {
common.LogError(i18n.Tr("error_generic", err))
os.Exit(1)
}
}