-
Notifications
You must be signed in to change notification settings - Fork 114
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
Rust Oak Loader #749
Rust Oak Loader #749
Conversation
Should |
Definitely not under SDK :) |
let error_msg = format!("Runtime error: {:?}", error); | ||
error!("{}", error_msg); | ||
error_msg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I get the point of logging something here and also returning it. Doesn't it end up being logged twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted logging, but kept explanation messages
|
||
fn read_file(filename: &str) -> Result<Vec<u8>, std::io::Error> { | ||
let mut file = File::open(filename).map_err(|error| { | ||
error!("Couldn't open file \"{}\": {:?}", filename, error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the std::io::Error
not contain any information at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't contain filename, so it just says: couldn't open a file
This change adds a Rust version of the Oak Loader
Fixes #723
Checklist
construction.