Commit a4fa0321 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_core: do not crash ui when live tests couldn't be launched

There is no need to crash the renderjs interface for an error not related to the interface itself.
parent 00c4a1f3
...@@ -70,8 +70,12 @@ ...@@ -70,8 +70,12 @@
return gadget.changeState(state_dict); return gadget.changeState(state_dict);
}) })
.push(undefined, function (error) { .push(undefined, function (error) {
console.warn("Error launching live tests", error); var data_textarea = gadget.element.querySelector('textarea'),
throw error; error_message = "Error launching live tests";
console.warn(error_message, error);
data_textarea.value = error_message;
return gadget.changeState({test_running: false});
}); });
}) })
......
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