handle error

This commit is contained in:
thesayyn 2023-11-03 11:47:53 -07:00
parent b062bc1c68
commit 2234e565ae
No known key found for this signature in database
GPG Key ID: D10C0AE203D0E4A8
1 changed files with 4 additions and 1 deletions

View File

@ -117,7 +117,10 @@ skip:
}
}
spec.WriteTo(writer)
_, err = spec.WriteTo(writer)
if err != nil {
return fmt.Errorf("writing mtree %s: %w", outputPath, err)
}
return nil
}