mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
Merge pull request #2818 from errordeveloper/master
Improve error message for new packages
This commit is contained in:
commit
a7e7a39f89
@ -89,6 +89,10 @@ func (g git) treeHash(pkg, commit string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
|
||||
if out == "" {
|
||||
return "", fmt.Errorf("Package %s is not in git", pkg)
|
||||
}
|
||||
|
||||
matches := treeHashRe.FindStringSubmatch(out)
|
||||
if len(matches) != 2 {
|
||||
return "", fmt.Errorf("Unable to parse ls-tree output: %q", out)
|
||||
|
Loading…
Reference in New Issue
Block a user