OliverKeyes has submitted this change and it was merged.

Change subject: Fixes tryCatch to keep going in case of error
......................................................................


Fixes tryCatch to keep going in case of error

Change-Id: Ie673302f80efa530230bda846797b37533a78f03
---
M run.R
1 file changed, 2 insertions(+), 3 deletions(-)

Approvals:
  OliverKeyes: Verified; Looks good to me, approved



diff --git a/run.R b/run.R
index d13b23c..5d8e930 100644
--- a/run.R
+++ b/run.R
@@ -1,5 +1,4 @@
-source("config.R")
-source("common.R")
+source("common.R") # config.R is sourced by common.R anyway
 
 # Central function
 run <- function(dates = NULL){
@@ -18,7 +17,7 @@
         main()
       }, error = function(e){
         print(x)
-        stop(e)
+        print(e$message)
       })
 
     })

-- 
To view, visit https://gerrit.wikimedia.org/r/248383
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie673302f80efa530230bda846797b37533a78f03
Gerrit-PatchSet: 3
Gerrit-Project: wikimedia/discovery/golden
Gerrit-Branch: master
Gerrit-Owner: Bearloga <[email protected]>
Gerrit-Reviewer: OliverKeyes <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to