From 3a56f2f8f819c212a18280485a8ae0dd88bd6f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E7=81=BF?= Date: Mon, 3 Jul 2023 13:53:02 +0800 Subject: [PATCH] error fix --- src/common/tools/hosts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/tools/hosts.go b/src/common/tools/hosts.go index e7600ec..7e9997e 100644 --- a/src/common/tools/hosts.go +++ b/src/common/tools/hosts.go @@ -29,7 +29,7 @@ func HostsToJson() (data map[string][]string, err error) { } } if s.Err() != nil { - return nil, err + return nil, s.Err() } return data, nil } -- 2.26.0