summaryrefslogtreecommitdiff
path: root/lockfile/error.rs
blob: 36130331639742265ea8b773fa349955bcbacb22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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),
}