Improve message if /proc/self/exe doesn't exist (?)

Fixes #26
This commit is contained in:
Frank Denis 2018-01-24 16:55:28 +01:00
parent 732c451dd4
commit 996d9be4e3
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ func (proxy *Proxy) processIncomingQuery(serverInfo *ServerInfo, clientProto str
func cdLocal() {
ex, err := os.Executable()
if err != nil {
dlog.Critical(err)
dlog.Warnf("Unable to determine the executable directory: [%s] -- You will need to specify absolute paths in the configuration file", err)
return
}
exPath := filepath.Dir(ex)