@reactful/create 0.0.76 → 0.0.78
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -64,8 +64,9 @@ async function downloadGitHub(user, repository, subdir, destination) {
|
|
64
64
|
const response = await fetch(`${prefix}/contents/installation/${subdir}`)
|
65
65
|
const contents = response.json()
|
66
66
|
|
67
|
-
if (!
|
67
|
+
if (!response.ok) {
|
68
68
|
console.error('failed to download scafold from github...')
|
69
|
+
console.log('textual: ', await response.text())
|
69
70
|
console.log('array: ', Array.isArray(contents))
|
70
71
|
console.log('code: ', response.status)
|
71
72
|
console.log('url: ', response.url)
|