Skip to content

Commit

Permalink
CA-297698 improve assert message
Browse files Browse the repository at this point in the history
Add some additional information to an extremely rare assert, to make it
a bit easier to work out what's going on if it ever happens again.
  • Loading branch information
TimSmithCtx authored and MarkSymsCtx committed Sep 28, 2018
1 parent fa57082 commit 1aea406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/blktap2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ def mklink(self, target):
# idempotent. However, a *wrong* target should never
# be seen.
if e.errno != errno.EEXIST: raise
assert self._equals(target)
assert self._equals(target), "'%s' not equal to '%s'" % (path, target)

def unlink(self):
try:
Expand Down

0 comments on commit 1aea406

Please sign in to comment.