Skip to content
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

Merged
merged 7 commits into from
Nov 21, 2024
Merged

feat: use deno_error crate #288

merged 7 commits into from
Nov 21, 2024

Conversation

crowlKats
Copy link
Member

No description provided.

#[error(transparent)]
SwcEmit(std::io::Error),
SwcEmit(#[inherit] std::io::Error),
#[class(TYPE)]
#[error(transparent)]
SourceMap(sourcemap::Error),
Copy link
Member Author

@crowlKats crowlKats Nov 14, 2024

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

src/lib.rs Show resolved Hide resolved
@@ -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;
Copy link
Member

@dsherret dsherret Nov 21, 2024

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

Copy link
Member Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lies.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crowlKats crowlKats merged commit 3fa6ae7 into main Nov 21, 2024
2 checks passed
@crowlKats crowlKats deleted the use-deno_error-crate branch November 21, 2024 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants