From ecc0a8791532b61a2429454eff8612fd67d6b22e Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Fri, 15 Jun 2018 16:01:53 +0000 Subject: [PATCH] [erp5_gadget_interface_validator] Stop surcharging error message --- .../web_page_module/gadget_interface_js.js | 29 +------------------ .../web_page_module/gadget_interface_js.xml | 4 +-- 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.js b/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.js index e52b387baf..5a974b78d0 100644 --- a/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.js +++ b/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.js @@ -43,16 +43,6 @@ return gadget_list; } - function generateErrorMessage(error) { - var error_message = ''; - error_message = error_message + - error.toString() + - (error.message !== undefined ? error.message : '') + - (error.status ? error.status.toString() + ' ' : '') + - (error.statusText !== undefined ? error.statusText : ''); - return error_message; - } - function getInterfaceListFromURL(gadget_url) { return new RSVP.Queue() .push(function () { @@ -82,10 +72,6 @@ } } return interface_list; - }, function (error) { - var message = "Error with loading the gadget data.\n"; - error.message = message + generateErrorMessage(error); - throw error; }); } @@ -146,10 +132,6 @@ } next_element = next_element.nextElementSibling; } - }, function (error) { - var message = "Error with loading the interface data.\n"; - error.message = message + generateErrorMessage(error); - throw error; }); } @@ -278,12 +260,7 @@ var interface_gadget = this; return interface_gadget.declareGadget(gadget_url, { scope: gadget_url - }) - .push(undefined, function (error) { - var message = "Error with loading the gadget.\n"; - error.message = message + error.message; - throw error; - }); + }); }) .declareMethod("getDeclaredGadgetInterfaceList", function (gadget_data) { @@ -386,10 +363,6 @@ interface_data.method_list.push(method); } return interface_data; - }, function (error) { - var message = "Error with loading the interface data.\n"; - error.message = message + generateErrorMessage(error); - throw error; }); }) diff --git a/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.xml b/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.xml index 27dc4d186a..485abd06b7 100644 --- a/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.xml +++ b/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_page_module/gadget_interface_js.xml @@ -230,7 +230,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>968.15707.16175.19985</string> </value> + <value> <string>968.15711.48104.9642</string> </value> </item> <item> <key> <string>state</string> </key> @@ -248,7 +248,7 @@ </tuple> <state> <tuple> - <float>1529078216.58</float> + <float>1529078407.64</float> <string>UTC</string> </tuple> </state> -- 2.30.9