It turns out that an error status code of fetching does not result in an error, so catch clauses will not be executed and the error message from raw.githubusercontent.com is displayed. This patch enables checks for responses' status code to make those errors more intuitive.
404: Not Found
=>
Failed to write https://raw.githubusercontent.com/vuejs//dev/src/core/index.js: Response was not ok: 404 Not Found
It turns out that an error status code of fetching does not result in an error, so
catch
clauses will not be executed and the error message from raw.githubusercontent.com is displayed. This patch enables checks for responses' status code to make those errors more intuitive.=>
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Checking_that_the_fetch_was_successful