-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
refactor(ext/websocket): use concrete error type #26226
Conversation
pub fn get_or_try_init(&self) -> Result<Option<RootCertStore>, AnyError> { | ||
pub fn get_or_try_init( | ||
&self, | ||
) -> Result<Option<RootCertStore>, deno_core::error::AnyError> { |
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.
Why not use concrete error type here and other methods?
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.
because RootCertStoreProvider
trait still returns anyerror as well; since it touches multiple parts, i want to keep that for after we do the exts, so when updating runtime & CLI
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.
Sounds reasonable.
# Conflicts: # runtime/errors.rs
# Conflicts: # runtime/errors.rs
# Conflicts: # runtime/errors.rs
# Conflicts: # runtime/errors.rs
No description provided.