Merge pull request #393 from budziq/playpen_errors

handle play.rust-lang.org communication errors in playpens
This commit is contained in:
Mathieu David 2017-08-06 15:16:11 +02:00 committed by GitHub
commit 798225bcdc
1 changed files with 5 additions and 1 deletions

View File

@ -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);
},
});
}