Commit a686bf59 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Do not crash if no error is passed

parent 7f890e75
......@@ -137,7 +137,7 @@
error = error.target.error;
}
if (error.target instanceof XMLHttpRequest) {
if ((error !== undefined) && (error.target instanceof XMLHttpRequest)) {
error_text = error.target.toString() + " " +
error.target.status + " " +
error.target.statusText + "\n" +
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>966.11429.50874.16537</string> </value>
<value> <string>966.11431.6711.50466</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1521043626.08</float>
<float>1521043696.52</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