ApeWorX / hosted-compiler

Compiler tool supporting Remix Online IDE
Apache License 2.0
4 stars 1 forks source link

feat: added structured errors #53

Closed Ninjagod1251 closed 1 month ago

Ninjagod1251 commented 2 months ago

What I did

Refactored the except CompilerError as e: in compuile_project a structured error response for failed tasks caused by CompilerError. This introduces a new Pydantic model to format the error and ensure it's compatible with frontend systems via FastAPI.

fixes: #50

How I did it

How to verify it

Checklist

What still needs to check and verify

Ninjagod1251 commented 2 months ago

Im still using pdb to make sure the obj can parse the error.

but it format good so far?

Ninjagod1251 commented 2 months ago

and do we need to change the get_task_exceptions to handle the new format?