Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
firefart committed Nov 16, 2023
1 parent 4518551 commit 88ab80f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
"golang.go",
"shardulm94.trailing-spaces",
"IBM.output-colorizer",
"ms-vscode.makefile-tools"
"ms-vscode.makefile-tools",
"ms-azuretools.vscode-docker"
]
}
}
}
}
2 changes: 1 addition & 1 deletion gobusterdir/gobusterdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (e *ErrWildcard) Error() string {
} else {
addInfo = fmt.Sprintf("%s => %d (Length: %d)", e.url, e.statusCode, e.length)
}
return fmt.Sprintf("the server returns a status code that matches the provided options for non existing urls. %s", addInfo)
return fmt.Sprintf("the server returns a status code that matches the provided options for non existing urls. %s. Please exclude the response length or the status code or set the wildcard option.", addInfo)
}

// GobusterDir is the main type to implement the interface
Expand Down
2 changes: 1 addition & 1 deletion gobusterfuzz/gobusterfuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type ErrWildcard struct {

// Error is the implementation of the error interface
func (e *ErrWildcard) Error() string {
return fmt.Sprintf("the server returns a status code that matches the provided options for non existing urls. %s => %d", e.url, e.statusCode)
return fmt.Sprintf("the server returns a status code that matches the provided options for non existing urls. %s => %d. Please exclude the response length or the status code or set the wildcard option.", e.url, e.statusCode)
}

// GobusterFuzz is the main type to implement the interface
Expand Down

0 comments on commit 88ab80f

Please sign in to comment.