server/app: fix binPath logic bug

Change-Id: I1c77881cc0a0de93a8745d3e82db56de86e18880
This commit is contained in:
mpl 2014-06-16 15:32:54 +02:00
parent ea5360382b
commit 8f5a9e2922
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ func (a *Handler) Start() error {
log.Printf("%q executable not found in %q", e)
}
}
if err != nil {
if binPath == "" || err != nil {
binPath, err = exec.LookPath(name)
if err != nil {
return fmt.Errorf("%q executable not found in PATH.", name)