Skip to content

checkout: remove warnings on checkout failure #3486

@skshetry

Description

@skshetry

During checkout, if there is any failure, the output is very noisy, eg:

WARNING: Cache '6836f797f3924fb46fcfd6b9f6aa6416.dir' not found. File 'data/prepared' won't be created.
WARNING: Cache 'a304afb96060aad90176268345e10355' not found. File 'data/data.xml' won't be created.
WARNING: Cache '42c7025fc0edeb174069280d17add2d4.dir' not found. File 'data/features' won't be created.
1 added
ERROR: unexpected error - Checkout failed for following targets:
 data/prepared
data/data.xml
data/features
Did you forget to fetch?

Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!

It'd be good to only have exceptions message, not the warnings.

But, as mentioned by Alex on #3401 (comment), reducing these warnings to a debug message might affect other commands as they also use checkout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhances DVCp2-mediumMedium priority, should be done, but less importantuiuser interface / interaction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions