diff options
author | Cara Salter <cara@devcara.com> | 2022-04-12 12:22:19 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-04-12 12:29:32 -0400 |
commit | 34af52c58daae7ad75c0871e88e7b937fcd078fb (patch) | |
tree | bd1ca042e84efd708250595727db1a4bb76054e7 /src/errors.rs | |
download | solarlib-34af52c58daae7ad75c0871e88e7b937fcd078fb.tar.gz solarlib-34af52c58daae7ad75c0871e88e7b937fcd078fb.zip |
Initial commit
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 9 |
1 files changed, 9 insertions, 0 deletions
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), +} |