Update error.r
Update error.r
bgweber/RServer,bgweber/RServer,bgweber/RServer,bgweber/RServer
# Copyright (C) 2016 Electronic Arts Inc.  All rights reserved.
warning("This is a warning!")

tryCatch({ 
  stop("This is an error!")
}, error = function(cond) {
  message("Caught the error.")
})   

stop("This is an error!")
print("Reached end of script!")

warning("This is a warning!")

tryCatch({ 
  stop("This is an error!")
}, error = function(cond) {
  message("Caught the error.")
})   

stop("This is an error!")
print("Reached end of script!")
