js-compute-runtime icon indicating copy to clipboard operation
js-compute-runtime copied to clipboard

Improve handling of hostcall errors

Open tschneidereit opened this issue 4 years ago • 2 comments

In a lot of places, we currently turn a hostcall error code into a JS exception containing the error code and the C++ source location of the hostcall. That's very rarely helpful in debugging JS code, and we should improve on it :)

tschneidereit avatar Aug 05 '21 12:08 tschneidereit

@tschneidereit I just came across the mapping of hostcall error codes within the fastly-shared crate and thought I'd have a go at contributing to this project -- I've started a draft pull-request with the error messages from the crate

JakeChampion avatar Aug 15 '21 22:08 JakeChampion

Reopening since this isn't yet fully addressed

tschneidereit avatar Aug 16 '21 13:08 tschneidereit