From bafac6dec3459d9c42d4d3ed7e23ca3fc073a148 Mon Sep 17 00:00:00 2001 From: Alexander Schepanovski Date: Tue, 31 Dec 2019 14:31:04 +0700 Subject: [PATCH] ui: fix grammar in the error message --- dvc/exceptions.py | 2 +- tests/func/test_metrics.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dvc/exceptions.py b/dvc/exceptions.py index e6cd70764..e48014e95 100644 --- a/dvc/exceptions.py +++ b/dvc/exceptions.py @@ -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) ) diff --git a/tests/func/test_metrics.py b/tests/func/test_metrics.py index 5a37699e5..8f69ec315 100644 --- a/tests/func/test_metrics.py +++ b/tests/func/test_metrics.py @@ -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