diff --git a/src/theme/book.js b/src/theme/book.js index 4ff47cbf..33eed34d 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -329,8 +329,12 @@ function run_rust_code(code_block) { dataType: "json", contentType: "application/json", data: JSON.stringify(params), + timeout: 15000, success: function(response){ result_block.text(response.result); - } + }, + error: function(qXHR, textStatus, errorThrown){ + result_block.text("Playpen communication " + textStatus); + }, }); }