Commit a3773fa4 authored by Boris Kocherov's avatar Boris Kocherov Committed by Romain Courteaud

[erp5_officejs] Increase replication error verbosity

User can send the error page to allow understanding the issue.
parent 264ded5c
......@@ -43,6 +43,8 @@
}));
configuration = {
debug: true,
report_level: 1000,
type: "replicate",
// XXX This drop the signature lists...
query: {
......
......@@ -271,7 +271,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>967.13533.35763.57446</string> </value>
<value> <string>977.9115.54748.426</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -289,7 +289,7 @@
</tuple>
<state>
<tuple>
<float>1525102062.15</float>
<float>1563788084.53</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -77,7 +77,13 @@
var gadget = this;
if (gadget.state.auto_repair) {
return repair_and_redirect(gadget);
return repair_and_redirect(gadget)
.push(undefined, function (e) {
if (e.name === "ReplicateReport") {
throw new Error(e.toString());
}
throw e;
});
}
});
......
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