Commit fc1f010b authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: show submit error in console

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