Commit ed0b4693 authored by preetwinder's avatar preetwinder

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

parent 29919b2f
......@@ -43,8 +43,11 @@
},
function (err) {
console.log('Ajax fetch for get failed', err);
if (err.message) {
return {'message': err.message};
if (err.target.response) {
return {'message': JSON.parse(err.target.response).message};
}
else {
return {'message': ''};
}
});
};
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>961.22079.38369.25429</string> </value>
<value> <string>961.22178.54709.38690</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1502453744.89</float>
<float>1502460122.11</float>
<string>UTC</string>
</tuple>
</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