Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 1 addition & 33 deletions crates/vp_error/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(clippy::allow_attributes, clippy::disallowed_types)]

use std::{ffi::OsString, path::Path, sync::Arc};
use std::{path::Path, sync::Arc};

use thiserror::Error;
use vt_path::{AbsolutePath, AbsolutePathBuf, relative::FromPathError};
Expand All @@ -24,17 +24,6 @@ pub enum Error {
#[error(transparent)]
Serde(#[from] serde_json::Error),

#[error("Env value is not valid unicode: {key} = {value:?}")]
EnvValueIsNotValidUnicode { key: Str, value: OsString },

#[cfg(unix)]
#[error("Unsupported file type: {0:?}")]
UnsupportedFileType(nix::dir::Type),

#[cfg(windows)]
#[error("Unsupported file type: {0:?}")]
UnsupportedFileType(std::fs::FileType),

#[error(transparent)]
Utf8Error(#[from] bstr::Utf8Error),

Expand All @@ -45,27 +34,6 @@ pub enum Error {
#[error(transparent)]
WorkspaceError(#[from] vt_workspace::Error),

#[error("Lint failed, reason: {reason}")]
LintFailed { status: Str, reason: Str },

#[error("Fmt failed")]
FmtFailed { status: Str, reason: Str },

#[error("Vite failed")]
Vite { status: Str, reason: Str },

#[error("Test failed")]
TestFailed { status: Str, reason: Str },

#[error("Lib failed")]
LibFailed { status: Str, reason: Str },

#[error("Doc failed, reason: {reason}")]
DocFailed { status: Str, reason: Str },

#[error("Resolve universal vite config failed")]
ResolveUniversalViteConfigFailed { status: Str, reason: Str },

#[error("The path ({}) is not a valid relative path because: {reason}", .path.display())]
InvalidRelativePath { path: Box<Path>, reason: FromPathError },

Expand Down
Loading