Commit f9915b0c authored by preetwinder's avatar preetwinder Committed by preetwinder

[erp5_officejs] Put error in message if it get fails.

parent fa581f63
...@@ -43,10 +43,13 @@ ...@@ -43,10 +43,13 @@
}, },
function (err) { function (err) {
console.log('Ajax fetch for get failed', err); console.log('Ajax fetch for get failed', err);
if (err.message) { if (err.target.response) {
return {'message': err.message}; return {'message': JSON.parse(err.target.response).message};
} }
}); else {
return {'message': ''};
}
});
}; };
function paginateResult(url, result, select_list) { function paginateResult(url, result, select_list) {
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.22079.38369.25429</string> </value> <value> <string>961.22178.54709.38690</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1502453744.89</float> <float>1502460122.11</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment