From 08071a2ffe9f1f5b0bf7870c1800cebde216eb66 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 31 Aug 2010 11:30:55 -0400 Subject: [PATCH] Handle errors in the FE. --- web_frontend/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_frontend/main.js b/web_frontend/main.js index ff39750..eaf67d0 100644 --- a/web_frontend/main.js +++ b/web_frontend/main.js @@ -36,7 +36,7 @@ armadillo.prototype.sendRequest_ = function(action, extra_data, callback) { armadillo.prototype.list = function(path) { var callback = function(e) { var data = e.target.getResponseJson(); - if (data['status']) { + if (data['error']) { return; // Error. } // Unlisten all current listeners. -- 2.43.5