Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ impl RuntimeError {
#[derive(Clone, Debug, Eq, Error, PartialEq)]
#[error("{error} from {module}")]
pub struct ModuleError {
/// The module where the error originated.
pub module: String,
/// The actual error code.
pub error: String,
}
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ mod runtimes;
mod subscription;

pub use crate::{
error::Error,
error::{
Error,
ModuleError,
RuntimeError,
},
events::{
EventTypeRegistry,
EventsDecoder,
Expand Down