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 2017/09/12 01:51:06 UTC
[whimsy] branch master updated: filter warnings; reraise errors
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 2c51480 filter warnings; reraise errors
2c51480 is described below
commit 2c51480efef5e3bb046f1028e039c587f49dda08
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Mon Sep 11 21:50:45 2017 -0400
filter warnings; reraise errors
---
www/roster/views/vue-config.js.rb | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/www/roster/views/vue-config.js.rb b/www/roster/views/vue-config.js.rb
index 9022a15..bdcce94 100644
--- a/www/roster/views/vue-config.js.rb
+++ b/www/roster/views/vue-config.js.rb
@@ -1 +1,8 @@
-Vue.config.silent = true
+# Filter out "data property already declared as a prop" warnings
+Vue.config.warnHandler = proc do |msg, vm, trace|
+ return if msg =~ /^The data property "\w+" is already declared as a prop\./
+ console.error "[Vue warn]: " + msg + trace if defined? console
+end
+
+# reraise errors to enable easier debugging
+Vue.config.errorHandler = proc {|err, vm, info| raise err}
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].