Merged by openshift-bot
OpenShift Bot authored on 2015/02/22 08:32:19... | ... |
@@ -48,7 +48,7 @@ func (g *SourceRefGenerator) FromDirectory(directory string) (*app.SourceRef, er |
48 | 48 |
// Make sure that this is a git directory |
49 | 49 |
gitRoot, err := g.repository.GetRootDir(directory) |
50 | 50 |
if err != nil { |
51 |
- return nil, err |
|
51 |
+ return nil, fmt.Errorf("could not obtain git repository root for %s. The directory may not be part of a valid source repository.", directory) |
|
52 | 52 |
} |
53 | 53 |
|
54 | 54 |
// Get URL |