mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 20:51:52 +08:00
polish embedded scanner SDK contracts
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user