Skip to content

Commit 85e0bf5

Browse files
authored
Revert back to error empty timer
1 parent 04cc241 commit 85e0bf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser/step.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ fn timer<'i>(bp: &mut BlockParser<'_, 'i>) -> Option<Event<'i>> {
478478
} else {
479479
Span::pos(name_offset)
480480
};
481-
bp.warn(warning!(
481+
bp.error(error!(
482482
"Invalid timer: neither quantity nor name",
483483
label!(span, "expected duration or name"),
484484
));

0 commit comments

Comments
 (0)