diff --git a/libconlang/src/interpreter.rs b/libconlang/src/interpreter.rs index 5bbe6a0..cc6271d 100644 --- a/libconlang/src/interpreter.rs +++ b/libconlang/src/interpreter.rs @@ -760,7 +760,7 @@ pub mod interpret { impl Interpret for Break { fn interpret(&self, env: &mut Environment) -> IResult { let Self { body } = self; - Err(Error::Return( + Err(Error::Break( body.as_ref() .map(|body| body.interpret(env)) .unwrap_or(Ok(ConValue::Empty))?,