You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/10/27 21:34:53 UTC

[whimsy] branch master updated: Make exception easier to read

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 3f524e0  Make exception easier to read
3f524e0 is described below

commit 3f524e0b75bb0517f1375c4af96544ed66c636b4
Author: Sebb <se...@apache.org>
AuthorDate: Wed Oct 27 22:34:46 2021 +0100

    Make exception easier to read
---
 www/secretary/iclaparser.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/secretary/iclaparser.rb b/www/secretary/iclaparser.rb
index b1f5255..6e18875 100644
--- a/www/secretary/iclaparser.rb
+++ b/www/secretary/iclaparser.rb
@@ -276,8 +276,8 @@ module ICLAParser
           end
         end
       end
-    rescue Exception => e
-      data[:error] = "Error processing #{path} => #{e.inspect} #{caller}"
+    rescue StandardError => e
+      data[:error] = "Error processing #{path} => #{e.inspect}\n#{e.backtrace.join("\n")}"
     end
 #    data[:debug] = debug
     # TODO attempt to classify data[:text] items?