From da832399aac3092a936504e607409856baab2077 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 29 Jun 2018 01:08:42 +0300 Subject: [PATCH] checkout: print better msg when cache is missing Fixes #410 Signed-off-by: Ruslan Kuprieiev --- dvc/remote/local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dvc/remote/local.py b/dvc/remote/local.py index 66721812e..0ec73c99e 100644 --- a/dvc/remote/local.py +++ b/dvc/remote/local.py @@ -158,8 +158,8 @@ class RemoteLOCAL(RemoteBase): if not cache or not os.path.exists(cache) or self.changed(md5): if cache: - Logger.warn(u'\'{}({})\': cache file not found'.format(os.path.relpath(cache), - os.path.relpath(path))) + msg = u'Cache \'{}\' not found. File \'{}\' won\'t be created.' + Logger.warn(msg.format(md5, os.path.relpath(path))) remove(path) return