fetch_lobs: handle HTTP/404 errors

The script assumes the fetch always works, so if a file is missing,
it hashes the HTML error response like an image and displays a very
confusing sha1 mismatch error.  Error out immediately if the fetch
is not successful.

Change-Id: I58f3ba82e26c63a8b037057951691645347162ba
Reviewed-on: https://chromium-review.googlesource.com/c/website/+/6159327
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
1 file changed
tree: 0fbc1c1bad425612327f224116d73d5df3320248
  1. docs/
  2. infra/
  3. scripts/
  4. site/
  5. .eleventy.js
  6. .firebaserc
  7. .gclient
  8. .gitignore
  9. .style.yapf
  10. .vpython3
  11. AUTHORS
  12. CONTENT_OWNERS
  13. DEPS
  14. DIR_METADATA
  15. navbar.md
  16. node_modules.tar.gz.sha1
  17. npmw
  18. originals.tar.gz.sha1
  19. OWNERS
  20. package-lock.json
  21. package.json
  22. PRESUBMIT.cfg
  23. PRESUBMIT.py
  24. README.md
README.md

Source code for www.chromium.org

This Git repo contains the source content for www.chromium.org.

The website is implemented by serving static content (mostly Markdown files) that is translated / built ahead of time into HTML using the Eleventy static site generator (which is written in Node/JS) and deployed onto Firebase Cloud Hosting.

See //docs/CONTRIBUTING.md if you wish to contribute to the site.