walnuthq / cairovm.codes

Source code for cairovm.codes — a web app to compile Cairo programs into Sierra and CASM with step-through execution capabilities.
https://cairovm.codes
MIT License
29 stars 24 forks source link

fix: compile and runtime error messaging #150

Closed jaipaljadeja closed 2 months ago

jaipaljadeja commented 2 months ago

Resolves #145

I had to move up setLogs(data.logs) to get the logs.

I dont know if this is a known issue but whenever compilation fails, it throws error in the below code segment because is_execution_successful & tracer_data in data is undefined as not returned by the run API and it would jump to catch block thus not updating the logs.

image

Also added a small style fix because in some screens console log messages were being cutoff like this image