Improve error message when no glob matches are found
Dependencies
- [2]
IALFWVXRAdd explicit error handling for invalid locale names - [3]
NFV26FRQImprove glob error handling - [4]
OWXLFLRMMerge `cli_macros` shim into `fluent_embed` - [5]
CESJ4CTOMove macro-specific code into `macro_impl` module
Change contents
- replacement in fluent_embed_derive/src/macro_impl/error.rs at line 55
attribute::Error::NoMatchesInGlob => {attribute::Error::NoMatchesInGlob { base_path } => { - replacement in fluent_embed_derive/src/macro_impl/error.rs at line 57
help = "The attribute should use glob syntax to match against multiple files";help = "Failed to match in path: {}", base_path.to_string_lossy(); - replacement in fluent_embed_derive/src/macro_impl/error.rs at line 59
"- Match against directories: locale/**/errors.ftl","- Match against files: locale/*.ftl";" - Match against directories: locale/**/errors.ftl"," - Match against files: locale/*.ftl"; - replacement in fluent_embed_derive/src/macro_impl/attribute.rs at line 20
NoMatchesInGlob,NoMatchesInGlob {base_path: PathBuf,}, - replacement in fluent_embed_derive/src/macro_impl/attribute.rs at line 75
return Err(Error::NoMatchesInGlob);return Err(Error::NoMatchesInGlob {base_path: PathBuf::from(manifest_root),});