Skip to content

Commit 9c0babd

Browse files
AleksZiminmvasl
andauthored
Update internal/dataexport/cmd/download/download.go
Co-authored-by: Maxim Vasilenko <[email protected]> Signed-off-by: Aleksandr Zimin <[email protected]>
1 parent 767b9ae commit 9c0babd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/dataexport/cmd/download/download.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@ func Run(ctx context.Context, log *slog.Logger, cmd *cobra.Command, args []strin
314314
if dstPath == "" {
315315
dstPath = deName
316316
}
317+
default:
318+
return fmt.Errorf("%w: %s", util.UnsupportedVolumeModeErr, volumeMode)
317319
}
318320

319321
log.Info("Start downloading", slog.String("url", url+srcPath), slog.String("dstPath", dstPath))

0 commit comments

Comments
 (0)