mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
Improve error message for new packages
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
This commit is contained in:
parent
8eeda0164b
commit
142ebf6f82
@ -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