-
Notifications
You must be signed in to change notification settings - Fork 10
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
add multi backend support for fs io #59
Conversation
need bleeding moonrun to run test |
@@ -60,7 +60,6 @@ jobs: | |||
git diff --exit-code | |||
|
|||
coverage-check-bleeding: | |||
if: false |
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.
cc @tonyfettes
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.
LGTM
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.
LGTM
fs/fs.mbt
Outdated
/// A `String` containing the file contents if the file exists, otherwise raises an error. | ||
pub fn read_file_to_string(~path : String) -> String! { | ||
guard path_exists(~path) else { | ||
raise IOError::NotFound("file `\{path}` does not exist") |
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.
raise IOError::NotFound(path)
is enough here. We can customize the Show
trait for IOError
to reduce redundant error messages.
No description provided.