Skip to content

Commit 4599959

Browse files
Improve error message for #76-type situations.
1 parent 5bb7ced commit 4599959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

Lines changed: 1 addition & 1 deletion
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)