-
Notifications
You must be signed in to change notification settings - Fork 47
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
feat: use deno_error crate #288
Conversation
#[error(transparent)] | ||
SwcEmit(std::io::Error), | ||
SwcEmit(#[inherit] std::io::Error), | ||
#[class(TYPE)] | ||
#[error(transparent)] | ||
SourceMap(sourcemap::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.
not sure if we want to have this be a TypeError or handle all the sourcemap::Error
variants, especially since it has a std::io::Error
variant
@@ -17,9 +14,13 @@ use crate::ModuleSpecifier; | |||
use crate::SourceRange; | |||
use crate::SourceRangedForSpanned; | |||
use crate::SourceTextInfo; | |||
use deno_error::JsError; | |||
use std::borrow::Cow; | |||
use std::fmt; |
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 move this here? One day we'll get this formatting in this repo: denoland/deno#26646
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 didnt, cargo fmt did
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.
Lies.
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
No description provided.