Fix failure not being reported from API. #290

This commit is contained in:
Andrey Smirnov
2016-03-01 12:52:54 +03:00
parent a29453805c
commit 18d04c7977
2 changed files with 6 additions and 0 deletions

View File

@@ -142,6 +142,7 @@ func showPackages(c *gin.Context, reflist *deb.PackageRefList) {
nil, context.DependencyOptions(), architecturesList)
if err != nil {
c.Fail(500, fmt.Errorf("unable to search: %s", err))
return
}
}