Skip to content

logger: output footer once when encountering multiple errors #2553

@ghost

Description

Version

DVC version: 0.60.1+beea7e.mod
Python version: 3.7.4
Platform: Linux-5.3.1-arch1-1-ARCH-x86_64-with-arch
Binary: False
Cache: reflink - True, hardlink - True, symlink - True
Filesystem type (cache directory): ('xfs', '/dev/mapper/vg-root')
Filesystem type (workspace): ('xfs', '/dev/mapper/vg-root')

Description

Sometimes, a command might output different errors:

ERROR: unable to create directory /cluster - [Errno 13] Permission denied

Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!
ERROR: failed to upload '.dvc/cache/d3/b07384d113edec49eaa6238ad5ff00' to 'ssh://mroutis@localhost/cluster/data/d3/b07384d113edec49eaa6238ad5ff00'
- [Errno 13] Permission denied

Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!
ERROR: failed to push data to the cloud - 1 files failed to upload

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

It is annoying to see every time the Having any troubles? footer.

Desired output

ERROR: unable to create directory /cluster - [Errno 13] Permission denied
ERROR: failed to upload '.dvc/cache/d3/b07384d113edec49eaa6238ad5ff00' to 'ssh://mroutis@localhost/cluster/data/d3/b07384d113edec49eaa6238ad5ff00' - [Errno 13] Permission denied
ERROR: failed to push data to the cloud - 1 files failed to upload

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

Related files

  • dvc/logger.py
  • dvc/main.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhances DVCgood first issuep2-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