Commit 9fb46b08 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Handle promise cancelation case when add login

parent ddfae815
Pipeline #9693 failed with stages
in 0 seconds
......@@ -67,6 +67,10 @@
.push(undefined, function (error) {
return gadget.getTranslationList(["Unknown Error, please open a ticket."])
.push(function (error_message) {
if (error.target === undefined) {
// received a cancelation so just skip
return gadget;
}
return jIO.util.readBlobAsText(error.target.response)
.then(function (evt) {
if (error.target.status === 406) {
......
......@@ -240,7 +240,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>984.13871.46211.53043</string> </value>
<value> <string>984.18432.37885.8345</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>1590759622.51</float>
<float>1591033199.4</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