Skip to content

Commit e2daa7a

Browse files
committed
fix: improve clarity in log message for duplicate file uploads
1 parent de51610 commit e2daa7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/cmd/upload/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ func (upCmd *UpCmd) uploadAsset(ctx context.Context, a *assets.Asset) (string, e
389389
if upCmd.assetIndex.uploadedAssets.Contains(ar.ID) {
390390
upCmd.app.Jnl().Record(ctx, fileevent.AnalysisLocalDuplicate, a.File, "reason", "the file is already present in the input", "original name", originalName)
391391
} else {
392-
upCmd.app.Jnl().Record(ctx, fileevent.UploadServerDuplicate, a.File, "reason", "the server has already this file", "original name", originalName)
392+
upCmd.app.Jnl().Record(ctx, fileevent.UploadServerDuplicate, a.File, "reason", "the server already has this file", "original name", originalName)
393393
}
394394
} else {
395395
upCmd.app.Jnl().Record(ctx, fileevent.Uploaded, a.File)
@@ -432,7 +432,7 @@ func (upCmd *UpCmd) replaceAsset(ctx context.Context, ID string, a, old *assets.
432432
if upCmd.assetIndex.uploadedAssets.Contains(ar.ID) {
433433
upCmd.app.Jnl().Record(ctx, fileevent.AnalysisLocalDuplicate, a.File, "reason", "the file is already present in the input", "original name", originalName)
434434
} else {
435-
upCmd.app.Jnl().Record(ctx, fileevent.UploadServerDuplicate, a.File, "reason", "the server has already this file", "original name", originalName)
435+
upCmd.app.Jnl().Record(ctx, fileevent.UploadServerDuplicate, a.File, "reason", "the server already has this file", "original name", originalName)
436436
}
437437
} else {
438438
a.ID = ID

0 commit comments

Comments
 (0)