Closed joe-p closed 1 year ago
Is this caused by all syntax errors? It would be surprising if this one particular syntax error has this effect and others did not.
It's only if the arg is between -257 and 0. For example, load -1000
throws load unable to parse i "-1000" as integer\n'
as one would expect
Subject of the issue
Passing an arg of
load
between -256 and 0 causes aglod to throw an unhandled error when compiling. The error manifests asECONNRESET
when hitting thecompile
endpoint.Your environment
Latest sandbox on MacOS
Steps to reproduce
load -1
/v2/compile
https://user-images.githubusercontent.com/50534337/225974317-ce8a0772-66b7-4b40-88bd-654314159b9b.mp4
Expected behaviour
A 400 response with the error message
'1 error: 16: load unable to parse i "-1" as integer\n'
Actual behaviour
ECONNRESET