Skip to main content

compmd_host/
bundle_error.rs

1//! Why a bundle can't be used.
2
3use crate::manifest_error::ManifestError;
4
5/// What is wrong with a bundle.
6#[derive(Debug, thiserror::Error, PartialEq, Eq)]
7pub enum BundleError {
8    /// It has no `manifest.json`: the frames weren't built, or the folder isn't a bundle.
9    #[error(
10        "no bundle here: its manifest.json is missing; build the page (with @compmd/vite) first"
11    )]
12    NoManifest,
13    /// Its manifest can't be used.
14    #[error(transparent)]
15    Manifest(#[from] ManifestError),
16}