Commit 73f73897 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾 Committed by Roque

erp5_web_renderjs_ui: Throw error when updateGame fails

parent 4610ef98
...@@ -52,10 +52,16 @@ function mainToWorker(evt) { ...@@ -52,10 +52,16 @@ function mainToWorker(evt) {
}) })
.push(function () { .push(function () {
return postMessage({'type': 'updated'}); return postMessage({'type': 'updated'});
}, function (error) {
console.log("ERROR:", error);
return postMessage({'type': 'error', 'error': error});
}); });
case 'event': case 'event':
handleEvent(evt.data); return new RSVP.Queue(handleEvent(evt.data))
break; .push(undefined, function (error) {
console.log("ERROR:", error);
return postMessage({'type': 'error', 'error': error});
});
default: default:
throw new Error('Unsupported message ' + JSON.stringify(evt.data)); throw new Error('Unsupported message ' + JSON.stringify(evt.data));
} }
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1004.22590.57904.22954</string> </value> <value> <string>1005.41422.8371.11861</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1671113075.12</float> <float>1674224630.4</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