diff --git a/server/images.go b/server/images.go index 6c89d6ad..5b0684de 100644 --- a/server/images.go +++ b/server/images.go @@ -591,6 +591,10 @@ func DeleteModel(name string) error { return nil }) + if err != nil { + return err + } + // only delete the files which are still in the deleteMap for k, v := range deleteMap { if v {