plow-technologies / inferno

A statically-typed functional scripting language
MIT License
4 stars 1 forks source link

[inferno-ml] Structured errors for `inferno-ml-server` #126

Open ngua opened 3 months ago

ngua commented 3 months ago

Currently it's quite difficult to debug issues with inferno-ml-server. If something goes wrong during script evaluation, Inferno initialization, etc..., the only way to distinguish errors is by whatever output is produced by the implementation of displayException by RemoteError. Instead, we could serialize the errors and provide this in the errBody. Then any calling client could try to decode the body and get back the actual exception