-
Notifications
You must be signed in to change notification settings - Fork 104
/
errors.go
24 lines (18 loc) · 968 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package nmap
import (
"errors"
)
var (
// ErrNmapNotInstalled means that upon trying to manually locate nmap in the user's path,
// it was not found. Either use the WithBinaryPath method to set it manually, or make sure that
// the nmap binary is present in the user's $PATH.
ErrNmapNotInstalled = errors.New("nmap binary was not found")
// ErrScanTimeout means that the provided context was done before the scanner finished its scan.
ErrScanTimeout = errors.New("nmap scan timed out")
// ErrMallocFailed means that nmap crashed due to insufficient memory, which may happen on large target networks.
ErrMallocFailed = errors.New("malloc failed, probably out of space")
// ErrParseOutput means that nmap's output was not parsed successfully.
ErrParseOutput = errors.New("unable to parse nmap output, see warnings for details")
// ErrResolveName means that Nmap could not resolve a name.
ErrResolveName = errors.New("nmap could not resolve a name")
)