Skip to content

Commit f7749c1

Browse files
authored
Merge pull request #78 from alexanderkjeldaas/patch-1
Improve error message for #76-type situations.
2 parents 5bb7ced + 4599959 commit f7749c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (m *Serve) SendDistributeRequests(req *http.Request, port, proxyServiceName
4040
}
4141
}
4242
} else {
43-
return http.StatusBadRequest, fmt.Errorf("Could not perform DNS %s lookup", dns)
43+
return http.StatusBadRequest, fmt.Errorf("Could not perform DNS %s lookup. If the proxy is not called 'proxy', you must set SERVICE_NAME=<name-of-the-proxy>.", dns)
4444
}
4545
if len(failedDns) > 0 {
4646
return http.StatusBadRequest, fmt.Errorf("Could not send distribute request to the following addresses: %s", failedDns)

0 commit comments

Comments
 (0)