whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit 695b9ad: deal with additional error formats
Date Sat, 23 Jan 2016 01:15:21 GMT
Commit 695b9ad3272fb18f98d9a68d4650eba9572738af:
    deal with additional error formats


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/status/errors.cgi                                        | ++ -
------------------------------------------------------------
3 changes: 2 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/status/errors.cgi b/www/status/errors.cgi
index 36374d2..cf2807c 100755
--- a/www/status/errors.cgi
+++ b/www/status/errors.cgi
@@ -19,7 +19,8 @@ response = http.request(request)
 
 # extract time, pinger, and exception from response
 exceptions = YAML.load(response.body).map do |hash| 
-  exception = hash['debug'][/Caught exception: .*?: (.*)/m, 1].strip
+  exception = (hash['debug'][/Caught exception: .*?: (.*)/m, 1] ||
+    hash['debug'][/Caught exception: (.*)/m, 1]).to_s.strip
   [Time.at(hash['time']), hash['pinger'], exception]
 end
 

Mime
View raw message