Error Handling for NewAgentConfig
This commit is contained in:
parent
89d7ec8242
commit
87c035cd39
3 changed files with 10 additions and 7 deletions
|
|
@ -97,7 +97,10 @@ func New(logger *logrus.Logger, version string) *Agent {
|
|||
pybin = filepath.Join(pd, "py38-x32", "python.exe")
|
||||
}
|
||||
|
||||
ac := NewAgentConfig()
|
||||
ac, err := NewAgentConfig()
|
||||
if err != nil {
|
||||
logger.Fatalln(err)
|
||||
}
|
||||
|
||||
headers := make(map[string]string)
|
||||
if len(ac.Token) > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue