This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Executor: Replace string errors with full source error #13860
Labels
I7-refactor
Code needs refactoring.
Z6-mentor
An easy task where a mentor is available. Please indicate in the issue who the mentor could be.
ISSUE
Overview
In
client/executor/common/src/error.rs
we haveError
andWasmError
which have multiple variants wrapping aString
. This makes it hard (impossible?) to reliably match on the underlying cause of the error.For example, in this PR we want to be able to tell if
WasmError::Other
is due to a file-not-found error. But currently all we have is aString
, and parsing the string is a no-go (the wording may change across locales, etc.).Related Issue
#13853
The text was updated successfully, but these errors were encountered: