Commit a554d476 authored by Boxiang Sun's avatar Boxiang Sun

erp5_web_renderjs_ui: Raise error if encounter 404 error

parent 8e991575
Pipeline #15027 running with stage
in 0 seconds
...@@ -236,6 +236,12 @@ and handling data send&receive. ...@@ -236,6 +236,12 @@ and handling data send&receive.
}}); }});
}); });
} }
})
.push(undefined, function (error) {
if ((error instanceof jIO.util.jIOError) && error.target.status === 404) {
return null;
}
throw error;
}); });
} }
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>987.8562.40237.45909</string> </value> <value> <string>991.31891.16843.23125</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1602064490.97</float> <float>1618847267.03</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