Commit 9fb7100d authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: show submit error in console

parent 3bc075bf
/*global window, document, rJS, URI, RSVP, jIO, Blob, URL, asBoolean, ensureArray */
/*global window, document, rJS, URI, RSVP, jIO, Blob, URL, asBoolean, ensureArray, console */
/*jslint nomen: true, indent: 2, maxerr: 3 */
/**
Page Form is a top-level gadget (a "Page") taking care of rendering form
and handling data send&receive.
*/
(function (window, document, rJS, URI, RSVP, jIO, Blob, URL, asBoolean, ensureArray) {
(function (window, document, rJS, URI, RSVP, jIO, Blob, URL, asBoolean, ensureArray, console) {
"use strict";
/*jslint regexp: true*/
......@@ -515,7 +515,7 @@ and handling data send&receive.
.push(null, function (error) {
/** Fail branch of the JIO call. */
var error_text = 'Encountered an unknown error. Try to resubmit.';
console.warn(error_text, error);
if (error instanceof RSVP.CancellationError) {
// CancellationError is thrown on "redirect" to cancel any pending
// promises. Since it is not a failure we rethrow.
......@@ -666,4 +666,4 @@ and handling data send&receive.
});
}(window, document, rJS, URI, RSVP, jIO, Blob, URL, asBoolean, ensureArray));
\ No newline at end of file
}(window, document, rJS, URI, RSVP, jIO, Blob, URL, asBoolean, ensureArray, console));
\ No newline at end of file
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>991.63595.43060.43997</string> </value>
<value> <string>999.25844.45625.48025</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1620724931.09</float>
<float>1649336938.64</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