diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 9f21253664..c965b14cf8 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -941,7 +941,8 @@ pub fn (mut c Checker) check_or_expr(node ast.OrExpr, ret_type ast.Type, expr_re } if !expr_return_type.has_flag(.optional) { if expr_return_type.has_flag(.result) { - c.warn('propagating a result like an option is deprecated, use `foo()!` instead of `foo()?`', node.pos) + c.warn('propagating a result like an option is deprecated, use `foo()!` instead of `foo()?`', + node.pos) } else { c.error('to propagate an option, the call must also return an optional type', node.pos)