Skip to content

Commit

Permalink
Suggest a reason why '-' cannot be resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Dec 16, 2021
1 parent 3cf836c commit 3fe254a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TargetGroup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,8 @@ int TargetGroup::get_next_host(struct sockaddr_storage *ss, size_t *sslen) {
}
else {
error("Failed to resolve \"%s\".", this->netblock->hostname.c_str());
if (this->netblock->hostname == "-")
error("Bare '-': did you put a space between '--'?");
return -1;
}

Expand Down

0 comments on commit 3fe254a

Please sign in to comment.