mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 17:15:30 +00:00
Merge pull request #6127 from alingse/patch-1
fix call errors.Wrap with a nil value error err
This commit is contained in:
commit
29bdb98d78
@ -330,7 +330,7 @@ func (w *StandardWriter) Write(event *ResultEvent) error {
|
||||
data = decolorizerRegex.ReplaceAll(data, []byte(""))
|
||||
}
|
||||
if _, writeErr := w.outputFile.Write(data); writeErr != nil {
|
||||
return errors.Wrap(err, "could not write to output")
|
||||
return errors.Wrap(writeErr, "could not write to output")
|
||||
}
|
||||
if w.AddNewLinesOutputFile && w.json {
|
||||
_, _ = w.outputFile.Write([]byte("\n"))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user