Skip to content

Commit 8bd404b

Browse files
committed
enhance error handling and refactor expression evaluation functions
1 parent d4ca54d commit 8bd404b

File tree

5 files changed

+254
-238
lines changed

5 files changed

+254
-238
lines changed

esi/src/error.rs

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ pub enum ExecutionError {
4949
/// An error occurred while creating a regular expression in an eval context
5050
#[error("failed to create a regular expression")]
5151
RegexError(#[from] regex::Error),
52+
53+
/// An error occurred while creating a regular expression in an eval context
54+
#[error("failed to execute a function: `{0}`")]
55+
FunctionError(String),
5256
}
5357

5458
pub type Result<T> = std::result::Result<T, ExecutionError>;

0 commit comments

Comments
 (0)