You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/05/12 21:15:15 UTC

[whimsy] branch master updated: defeat try/catch

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

rubys 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 1fce601  defeat try/catch
1fce601 is described below

commit 1fce601ec902114fc1b1fe8aba6acbe53d403fee
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sat May 12 17:15:01 2018 -0400

    defeat try/catch
---
 www/board/agenda/views/vue-config.js.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/views/vue-config.js.rb b/www/board/agenda/views/vue-config.js.rb
index bdcce94..061383b 100644
--- a/www/board/agenda/views/vue-config.js.rb
+++ b/www/board/agenda/views/vue-config.js.rb
@@ -5,4 +5,6 @@ Vue.config.warnHandler = proc do |msg, vm, trace|
 end
 
 # reraise errors to enable easier debugging
-Vue.config.errorHandler = proc {|err, vm, info| raise err}
+Vue.config.errorHandler = proc do |err, vm, info| 
+  setTimeout(0) { raise err }
+end

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.