When a plugin thows an error, print out the message in addition to the

line number
This commit is contained in:
bjschuma 2010-02-10 17:46:26 -05:00
parent a1da4bcee8
commit fbe5a760f7
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class Plugin:
return self.run(args)
# Find out information about the error
except:
except Exception,e:
trace = inspect.trace()
frame = trace[len(trace)-1]
@ -45,7 +45,7 @@ class Plugin:
lineno = str(frame[2])
filename = filename.rsplit(os.sep,1)[1]
write(filename+" ("+lineno+")")
write(filename+" ("+lineno+"): "+str(e))
def run(self,args=None):