Skip to content

Commit

Permalink
[fud2] update shell error message (#2260)
Browse files Browse the repository at this point in the history
The error message referenced an old function which no longer exists.
This has been changed.
  • Loading branch information
jku20 committed Aug 9, 2024
1 parent f837094 commit 66ea78b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fud2/fud-core/src/script/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ impl Display for RhaiSystemError {
write!(f, "Unable to build two ops at once: trying to build `{new_name:?}` but already building `{old_name:?}`")
}
RhaiSystemErrorKind::NoOp => {
write!(f, "Unable to find current op being built. Consider calling start_op_stmts earlier in the program.")
write!(
f,
"Function may only be called within the body of an op."
)
}
RhaiSystemErrorKind::NoDep(dep) => {
write!(f, "Unable to find dep: `{dep:?}`. A call to `shell` with `{dep:?}` as an output must occur prior to this call.")
Expand All @@ -124,7 +127,7 @@ impl Display for RhaiSystemError {
write!(f, "Expected `shell`, got `shell_deps`. Ops may contain only one of `shell` or `shell_deps` calls, not calls to both")
}
RhaiSystemErrorKind::ExpectedShellDeps => {
write!(f, "Expected `shell_deps`, got shell. Ops may contain only one of `shell` or `shell_deps` calls, not calls to both")
write!(f, "Expected `shell_deps`, got `shell`. Ops may contain only one of `shell` or `shell_deps` calls, not calls to both")
}
}
}
Expand Down

0 comments on commit 66ea78b

Please sign in to comment.