ui: fix grammar in the error message

This commit is contained in:
Alexander Schepanovski
2020-01-07 17:26:01 +07:00
parent 1b1f8f9d22
commit bafac6dec3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ class ReproductionError(DvcException):
class BadMetricError(DvcException):
def __init__(self, paths):
super().__init__(
"the following metrics do not exists, "
"the following metrics do not exist, "
"are not metric files or are malformed: {paths}".format(
paths=", ".join("'{}'".format(path) for path in paths)
)
+1 -1
View File
@@ -868,6 +868,6 @@ def test_show_multiple_outputs(tmp_dir, dvc, caplog):
assert 1 == main(["metrics", "show", "1.json", "not-found"])
assert '1.json: {"AUC": 1}' in caplog.text
assert (
"the following metrics do not exists, "
"the following metrics do not exist, "
"are not metric files or are malformed: 'not-found'"
) in caplog.text