share/views/public/js/rbbt.exception.js in rbbt-rest-1.6.18 vs share/views/public/js/rbbt.exception.js in rbbt-rest-1.6.19
- old
+ new
@@ -3,10 +3,11 @@
rbbt.exception.null = function(variable, text){
if (variable == null) throw(text)
}
rbbt.exception.report = function(err){
+ console.log("Error: " + err)
rbbt.modal.controller().error(err, "Application Error")
}
rbbt.try = function(func){
var f = function(){
@@ -15,7 +16,11 @@
}catch(err){
rbbt.exception.report(err)
}
}
return f
+}
+
+rbbt.do_try = function(func){
+ rbbt.try(func)()
}