mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-23 06:35:24 +00:00
fix(main.go): add errcheck
This commit is contained in:
parent
99914e1a32
commit
937fa1252b
@ -599,7 +599,10 @@ Additional documentation is available at: https://docs.nuclei.sh/getting-started
|
|||||||
if varSlice, ok := variables.([]interface{}); ok {
|
if varSlice, ok := variables.([]interface{}); ok {
|
||||||
for _, value := range varSlice {
|
for _, value := range varSlice {
|
||||||
if strVal, ok := value.(string); ok {
|
if strVal, ok := value.(string); ok {
|
||||||
options.Vars.Set(strVal)
|
err = options.Vars.Set(strVal)
|
||||||
|
if err != nil {
|
||||||
|
gologger.Warning().Msgf("Could not set variable from config file: %s\n", err)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
gologger.Warning().Msgf("Skipping non-string variable in config: %#v", value)
|
gologger.Warning().Msgf("Skipping non-string variable in config: %#v", value)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user