Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

UnknownPrograms error was missing from update log

  • Loading branch information...
commit fcddee99473ab3c2e1a2829c5179ad9b9141fe84 1 parent a00588f
Gil Brandao madskaddie authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 scheduler/app/helpers/schedule_update_logs_helper.rb
12 scheduler/app/helpers/schedule_update_logs_helper.rb
View
@@ -57,13 +57,13 @@ def log_message(update_log)
when /CalendarFetchFailedException/
return calendars_fetch_failed(update_log)
when /UnknownProgramException/
- return YAML::load(update_log.operation_errors)
+ return unknown_programs(update_log)
end
end
def ignored_repetitions(update_log)
s =<<EOC
- <table id='tbl'>
+ <table>
<thead>
<tr>
<th>%{program_name}</th>
@@ -103,4 +103,12 @@ def calendars_fetch_failed(update_log)
s << '</ul>'
return {:title=>'Calendars Unreachable', :content => s}
end
+
+ def unknown_programs(update_log)
+ tmp = YAML::load(update_log.operation_errors)
+ s = "<ul>"
+ tmp.each { |x| s << "<li>#{x}</li>" }
+ s << '</ul>'
+ return {:title=>'Unkown Program Names', :content => s}
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.