ngen/src/file_writing/content_generation_error.rs
2024-03-11 22:08:03 -05:00

11 lines
275 B
Rust

use std::fmt::Display;
pub struct ContentGenerationError {
pub message: String,
}
impl Display for ContentGenerationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "content generation error: {}", self.message)
}
}