diff options
Diffstat (limited to 'contexts/data/fiveui/rules.js')
-rw-r--r-- | contexts/data/fiveui/rules.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/contexts/data/fiveui/rules.js b/contexts/data/fiveui/rules.js index e45d0d8..68d821d 100644 --- a/contexts/data/fiveui/rules.js +++ b/contexts/data/fiveui/rules.js @@ -157,7 +157,7 @@ fiveui.RuleSet.load = function(manifest_url, options) { } else { - throw "unable to parse manifest url"; + options.error("unable to parse manifest url"); } }; @@ -199,16 +199,14 @@ fiveui.RuleSetModel = Backbone.Model.extend({ var rsMethod = method == 'update' ? 'updateRuleSet' : 'addRuleSet'; msg.send('loadRuleSet', source, function(obj) { - if(obj) { obj.id = id; obj.source = source; msg.send(rsMethod, obj, options.success); } else { - options.error(); + options.error('failed to load manifest'); } - }); break; |