From 828970a0c448a22e26a44447c8a5f40d416ce6ea Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 6 Jan 2018 19:06:08 -0800 Subject: [PATCH] Bugfix: "no cache file" message --- dvc/command/fsck.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dvc/command/fsck.py b/dvc/command/fsck.py index 029d463c8..68f90b7ed 100644 --- a/dvc/command/fsck.py +++ b/dvc/command/fsck.py @@ -39,7 +39,7 @@ class CmdFsck(CmdBase): md5 = None hardlink_md5 = caches.get(file) - hardlink_msg = hardlink_md5 if caches else 'Error - cache file not found!' + hardlink_msg = hardlink_md5 if hardlink_md5 else 'No cache file found' hardlink_error = '!!!' if hardlink_md5 and md5 and md5 != hardlink_md5 else '' print(u' Hardlink to cache file: {} {}'.format(hardlink_msg, hardlink_error)) @@ -69,4 +69,3 @@ class CmdFsck(CmdBase): result[dep.dvc_path].append((stage, dep)) return result -