lock: fix error msg

This commit is contained in:
Ruslan Kuprieiev
2018-11-30 06:49:20 +02:00
committed by GitHub
parent 22d38cda9f
commit 4fdd869d91
+1 -1
View File
@@ -9,7 +9,7 @@ class CmdLockBase(CmdBase):
self.project.lock_stage(target, unlock=unlock)
except DvcException as ex:
msg = 'Failed to {}lock \'{}\''
msg.format('un' if unlock else '', target)
msg = msg.format('un' if unlock else '', target)
self.project.logger.error(msg, ex)
return 1
return 0