chore(execution-engine): replace IncompatibleJValueType with more specific FoldIteratesOverNonArray in fold (#502)

This commit is contained in:
raftedproc
2023-03-09 14:37:39 +03:00
committed by GitHub
parent d28f674cdc
commit 47a7a87925
2 changed files with 2 additions and 7 deletions

View File

@ -55,7 +55,7 @@ pub enum CatchableError {
},
/// A fold instruction must iterate over array value.
#[error("lambda '{1}' returned non-array value '{0}' for fold instruction")]
#[error("expression '{1}' returned non-array value '{0}' for a fold iterable")]
FoldIteratesOverNonArray(JValue, String),
/// This error type is produced by a match to notify xor that compared values aren't equal.