Fail on sync when there is no match for glob.

This commit is contained in:
Karthikeyan Singaravelan
2022-05-11 18:37:09 +03:00
committed by Ruslan Kuprieiev
parent a80a85e6bd
commit e177f041c8
4 changed files with 38 additions and 2 deletions
+6
View File
@@ -349,3 +349,9 @@ class CircularImportError(DvcException):
class PrettyDvcException(DvcException):
def __pretty_exc__(self, **kwargs):
"""Print prettier exception message."""
class GlobDoesNotMatchError(DvcException):
def __init__(self, glob):
msg = f"Glob {glob} has no matches."
super().__init__(msg)