File tree 2 files changed +4
-7
lines changed
packages/gatsby-transformer-video/src
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ export default class FFMPEG {
89
89
reject ( err )
90
90
} )
91
91
. on ( `end` , ( ) => {
92
- reporter . verbose ( `${ name } - 100%` )
93
92
reporter . info ( `${ name } - converted` )
94
93
resolve ( )
95
94
} )
@@ -119,9 +118,7 @@ export default class FFMPEG {
119
118
}
120
119
121
120
if ( ! path ) {
122
- throw new Error (
123
- `Unable to extract asset file path for ${ type } (${ video . id } )`
124
- )
121
+ throw new Error ( `Unable to locate video file for ${ type } (${ video . id } )` )
125
122
}
126
123
127
124
const optionsHash = createContentDigest ( fieldArgs )
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ export async function cacheContentfulVideo({ video, cacheDir }) {
27
27
28
28
try {
29
29
await access ( path , fs . constants . R_OK )
30
- reporter . verbose ( `Already downloaded ${ url } ` )
30
+ reporter . verbose ( `Cache hit: ${ url } ` )
31
31
downloadCache [ url ] = path
32
32
33
33
return downloadCache [ url ]
34
34
} catch {
35
35
if ( url in downloadCache ) {
36
- // Already downloading
36
+ // Already in download queue
37
37
return downloadCache [ url ]
38
38
}
39
39
@@ -44,7 +44,7 @@ export async function cacheContentfulVideo({ video, cacheDir }) {
44
44
while ( ! downloaded ) {
45
45
try {
46
46
await downloadQueue . add ( async ( ) => {
47
- reporter . info ( `Downloading ${ url } ` )
47
+ reporter . info ( `Downloading: ${ url } ` )
48
48
49
49
const response = await axios ( {
50
50
method : `get` ,
You can’t perform that action at this time.
0 commit comments