Clarifing naming to use 'Phase'

This commit is contained in:
Kyle Ellrott
2015-06-09 11:08:25 -07:00
parent bde53311a7
commit 745c777879
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -87,11 +87,11 @@ class ToolErrorLog:
self.error_stack = []
self.max_errors = 100
def add_error(self, file, section, exception):
def add_error(self, file, phase, exception):
self.error_stack.insert(0, {
"file" : file,
"time" : str(datetime.now()),
"section" : section,
"phase" : phase,
"error" : str(exception)
} )
if len(self.error_stack) > self.max_errors:
+2 -2
View File
@@ -11,14 +11,14 @@ Internal Tool Error log
<table class="manage-table colored" border="0" cellspacing="0" cellpadding="0" width="100%">
<tr class="header">
<td>Time</td>
<td>System</td>
<td>Phase</td>
<td>File</td>
<td>Error</td>
</tr>
%for error in tool_errors:
<tr>
<td>${error['time']}</td>
<td>${error['section']}</td>
<td>${error['phase']}</td>
<td>${error['file']}</td>
<td>${error['error']}</td>
</tr>