Number of assembly errors is also sent on code upload

This commit is contained in:
simon 2018-01-17 19:02:36 -05:00
parent 33955d9639
commit 210e579995
2 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public class AssemblyResult {
* List of exceptions encountered during the assembly attempt,
* they will be displayed in the editor
*/
ArrayList<AssemblyException> exceptions = new ArrayList<>(50);
public ArrayList<AssemblyException> exceptions = new ArrayList<>(50);
/**
* Offset of the code segment
*/

View File

@ -46,6 +46,7 @@ public class CodeUploadHandler implements MessageHandler {
JSONObject response = new JSONObject();
response.put("t", "codeResponse");
response.put("bytes", ar.bytes.length);
response.put("exceptions", ar.exceptions.size());
user.getWebSocket().send(response.toJSONString());
}