Working download photo method
Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
parent
c1a45bf8e3
commit
b7fd487a2e
18 changed files with 918 additions and 170 deletions
|
@ -69,7 +69,7 @@ func PhotoUnstack(router *gin.RouterGroup) {
|
|||
stackPrimary, err := stackPhoto.PrimaryFile()
|
||||
|
||||
if err != nil {
|
||||
log.Errorf("photo: can't find primary file for existing photo (unstack %s)", txt.Quote(baseName))
|
||||
log.Errorf("photo: can't find primary file for %s (unstack)", txt.Quote(baseName))
|
||||
AbortUnexpected(c)
|
||||
return
|
||||
}
|
||||
|
@ -81,11 +81,11 @@ func PhotoUnstack(router *gin.RouterGroup) {
|
|||
AbortEntityNotFound(c)
|
||||
return
|
||||
} else if related.Len() == 0 {
|
||||
log.Errorf("photo: no files found (unstack %s)", txt.Quote(baseName))
|
||||
log.Errorf("photo: no files found for %s (unstack)", txt.Quote(baseName))
|
||||
AbortEntityNotFound(c)
|
||||
return
|
||||
} else if related.Main == nil {
|
||||
log.Errorf("photo: no main file found (unstack %s)", txt.Quote(baseName))
|
||||
log.Errorf("photo: no main file found for %s (unstack)", txt.Quote(baseName))
|
||||
AbortEntityNotFound(c)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue