mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 07:18:31 +01:00
plots: fix error when there are no plots in repo (#3940)
Consistent with `dvc metrics show/diff` behaviour. Fixes #3925
This commit is contained in:
@@ -178,6 +178,14 @@ class NoMetricsError(DvcException):
|
||||
)
|
||||
|
||||
|
||||
class NoPlotsError(DvcException):
|
||||
def __init__(self):
|
||||
super().__init__(
|
||||
"no plots in this repository. Use `--plots/--plots-no-cache` "
|
||||
"options for `dvc run` to mark stage outputs as plots."
|
||||
)
|
||||
|
||||
|
||||
class YAMLFileCorruptedError(DvcException):
|
||||
def __init__(self, path):
|
||||
path = relpath(path)
|
||||
|
||||
Reference in New Issue
Block a user