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

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

parent fa581f63
......@@ -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