mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-20 02:56:44 +00:00
Number of assembly errors is also sent on code upload
This commit is contained in:
parent
33955d9639
commit
210e579995
@ -27,7 +27,7 @@ public class AssemblyResult {
|
|||||||
* List of exceptions encountered during the assembly attempt,
|
* List of exceptions encountered during the assembly attempt,
|
||||||
* they will be displayed in the editor
|
* 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
|
* Offset of the code segment
|
||||||
*/
|
*/
|
||||||
|
@ -46,6 +46,7 @@ public class CodeUploadHandler implements MessageHandler {
|
|||||||
JSONObject response = new JSONObject();
|
JSONObject response = new JSONObject();
|
||||||
response.put("t", "codeResponse");
|
response.put("t", "codeResponse");
|
||||||
response.put("bytes", ar.bytes.length);
|
response.put("bytes", ar.bytes.length);
|
||||||
|
response.put("exceptions", ar.exceptions.size());
|
||||||
|
|
||||||
user.getWebSocket().send(response.toJSONString());
|
user.getWebSocket().send(response.toJSONString());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user