diff options
Diffstat (limited to 'lockfile/error.rs')
-rw-r--r-- | lockfile/error.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lockfile/error.rs b/lockfile/error.rs new file mode 100644 index 000000000..361303316 --- /dev/null +++ b/lockfile/error.rs @@ -0,0 +1,15 @@ +// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. + +use thiserror::Error; + +#[derive(Debug, Error)] +pub enum LockfileError { + #[error(transparent)] + Io(#[from] std::io::Error), + + #[error("Unable to read lockfile: \"{0}\"")] + ReadError(String), + + #[error("Unable to parse contents of lockfile: \"{0}\"")] + ParseError(String), +} |