We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29dd00c commit 554e8b2Copy full SHA for 554e8b2
nix-script-directives/src/lib.rs
@@ -68,7 +68,7 @@ impl Directives {
68
match fields.get(field) {
69
Some(value) => {
70
if value.len() != 1 {
71
- anyhow::bail!("I got multiple `{}` directives, and I don't know which to use. Remove all but one and try again!", field);
+ anyhow::bail!("multiple `{}` directives but need a single one", field);
72
}
73
74
Ok(Some(value[0]))
@@ -89,7 +89,7 @@ impl Directives {
89
match parsed.kind() {
90
SyntaxKind::NODE_ATTR_SET => Ok(Some(parsed)),
91
other => anyhow::bail!(
92
- "I expected the `{}` directive to be a Nix record, but it was a `{:?}`",
+ "`{}` directive should be a Nix record but is a `{:?}`",
93
field,
94
other
95
),
0 commit comments