-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve or delete ConfigurationError when creating new Oak Nodes #1027
Comments
Note that currently we just return oak/oak/server/rust/oak_runtime/src/runtime/mod.rs Lines 1014 to 1023 in 3463024
If Perhaps we should have a mechanism for returning a string error message alongside an error message from ABI function calls, so that the error message may be printed by the calling node using regular logging pseudo-node (if one available and IFC is satisfied). @daviddrysdale (or anyone else): is there a good pattern that may be used here, short of just adding additional parameters to each ABI function calls with pointer to a buffer in which to write an error message? |
In this particular case, an alternative pattern could be to implement For instance, it would allow us to move There are pros and cons, but I think it would be interesting to consider this approach. |
Do we need |
When creating a new Node or Pseudo-Node in the Oak Runtime, we represent errors with values of this enum:
oak/oak/server/rust/oak_runtime/src/node/mod.rs
Lines 88 to 96 in df425bd
It only contains some limited amount of details about the failure, and it really needs to be complemented by logs anyways, so we should probably either augment it with all the information needed to identify the failure, or get rid of it and just rely on logging at node creation time.
The text was updated successfully, but these errors were encountered: