diff --git a/AUTHORS b/AUTHORS index ac5c0cce..0889d1eb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -4,6 +4,7 @@ Andrey Kostov Andy Goldstein Anton Tiurin Arnaud Porterie +Ben Firshman Brian Bland David Lawrence Derek McGowan @@ -11,11 +12,13 @@ Diogo Mónica Donald Huang Frederick F. Kautz IV Josh Hawn +Mary Anthony +Nathan Sullivan Nghia Tran Olivier Gambier Richard Shreyas Karnik +Simon Thulbourn Stephen J Day Tianon Gravi xiekeyang -Mary Anthony diff --git a/registry/storage/layerwriter.go b/registry/storage/layerwriter.go index ccd8679b..58078459 100644 --- a/registry/storage/layerwriter.go +++ b/registry/storage/layerwriter.go @@ -109,6 +109,10 @@ func (lw *layerWriter) ReadFrom(r io.Reader) (n int64, err error) { } func (lw *layerWriter) Close() error { + if lw.err != nil { + return lw.err + } + if err := lw.storeHashState(); err != nil { return err }