Skip to content

Commit

Permalink
Returning a generic error instead of the last one from makeSearchers
Browse files Browse the repository at this point in the history
  • Loading branch information
jklein committed Jan 30, 2015
1 parent bbf2a4e commit 29ea717
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/hound/cmds/houndd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"log"
"net/http"
"os"
"errors"
"os/exec"
"path"
"path/filepath"
Expand Down Expand Up @@ -197,6 +198,10 @@ func makeSearchers(

}

if err != nil {
err = errors.New("One or more repos failed to index")
}

return m, err
}

Expand Down
2 changes: 0 additions & 2 deletions src/hound/vcs/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"bytes"
"io"
"log"
"os"
"io/ioutil"
"os/exec"
"path/filepath"
"strings"
Expand Down

0 comments on commit 29ea717

Please sign in to comment.