Skip to content

Commit cee6b9d

Browse files
authored
feat: print current path for upload and timeout (#605)
1 parent 56989fd commit cee6b9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/command/upload.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RedundancyLevel, Tag, Utils, Reference } from '@ethersphere/bee-js'
1+
import { RedundancyLevel, Reference, Tag, Utils } from '@ethersphere/bee-js'
22
import { Numbers, Optional, System } from 'cafe-utility'
33
import { Presets, SingleBar } from 'cli-progress'
44
import * as FS from 'fs'
@@ -190,7 +190,7 @@ export class Upload extends RootCommand implements LeafCommand {
190190
}
191191

192192
private async uploadAnyWithSpinner(tag: Tag | undefined, isFolder: boolean): Promise<string> {
193-
const spinner = createSpinner('Uploading data...')
193+
const spinner = createSpinner(this.path ? `Uploading ${this.path}...` : 'Uploading data from stdin...')
194194

195195
if (this.verbosity !== VerbosityLevel.Quiet && !this.curl) {
196196
spinner.start()
@@ -363,7 +363,7 @@ export class Upload extends RootCommand implements LeafCommand {
363363
if (synced) {
364364
this.console.dim('Data has been synced on Swarm network')
365365
} else {
366-
this.console.error('Data syncing timeout.')
366+
this.console.error(this.path ? `'Data syncing timeout for ${this.path}'` : 'Data syncing timeout')
367367
exit(1)
368368
}
369369
}

0 commit comments

Comments
 (0)