From 34af52c58daae7ad75c0871e88e7b937fcd078fb Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Tue, 12 Apr 2022 12:22:19 -0400 Subject: Initial commit --- src/errors.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/errors.rs (limited to 'src/errors.rs') diff --git a/src/errors.rs b/src/errors.rs new file mode 100644 index 0000000..2960ba9 --- /dev/null +++ b/src/errors.rs @@ -0,0 +1,9 @@ +use thiserror::Error; + +#[derive(Error, Debug)] +pub enum Error { + #[error("libvirt: {0}")] + Libvirt(#[from] virt::error::Error), + #[error("Unknown: {0}")] + Other(String), +} -- cgit v1.2.3