Skip to content

Commit 1ea7ff1

Browse files
authored
consistent convert logs (#953)
1 parent 43bfe5e commit 1ea7ff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/convert.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ export async function convert(
6464
if (await maybeFetch(path, force, effects)) {
6565
start = Date.now();
6666
s = clack.spinner();
67-
s.start(`Downloading ${bold(file.name)}`);
67+
s.start(`Downloading ${bold(path)}`);
6868
const response = await fetch(file.download_url);
6969
if (!response.ok) throw new Error(`error fetching ${file.download_url}: ${response.status}`);
7070
const buffer = Buffer.from(await response.arrayBuffer());
71-
s.stop(`Downloaded ${bold(file.name)} ${faint(`in ${(Date.now() - start).toLocaleString("en-US")}ms`)}`);
71+
s.stop(`Downloaded ${bold(path)} ${faint(`in ${(Date.now() - start).toLocaleString("en-US")}ms`)}`);
7272
await effects.prepareOutput(path);
7373
await effects.writeFile(path, buffer);
7474
await effects.touch(path, file.create_time);

0 commit comments

Comments
 (0)