aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2010-05-09 22:23:58 +0200
committerLaurent Bachelier <laurent@bachelier.name>2010-05-09 22:23:58 +0200
commite2cfb27ce96bdd95a561b359bc3be8ffbe75b51d (patch)
tree35276dfccdce0c761c90b9b61d938c8b3c415a78
parentCode consistency and a small fix (diff)
downloadconfman-e2cfb27ce96bdd95a561b359bc3be8ffbe75b51d.tar.xz
Display relative path on exceptions
Makes it easier to find the file that caused it.
-rw-r--r--confman.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/confman.py b/confman.py
index 40bf7c0..7a327a0 100644
--- a/confman.py
+++ b/confman.py
@@ -30,7 +30,7 @@ class Action(object):
self.config = config
def __repr__(self):
- return self.__class__.__name__+": "+self.source+" => "+self.dest
+ return self.__class__.__name__+": "+self.relpath+"/"+self.source+" => "+self.dest
def check(self):
raise NotImplementedError()