Skip to content

Commit 831cdf3

Browse files
Fail if no fluent messages were found
1 parent d24ee20 commit 831cdf3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/tidy/src/fluent_alphabetical.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,7 @@ pub fn check(path: &Path, bless: bool, diag_ctx: DiagCtx) {
118118
},
119119
);
120120

121+
assert!(!all_defined_msgs.is_empty());
122+
121123
crate::fluent_used::check(path, all_defined_msgs, diag_ctx);
122124
}

0 commit comments

Comments
 (0)