Skip to content

Commit 554e8b2

Browse files
committed
wording
1 parent 29dd00c commit 554e8b2

File tree

1 file changed

+2
-2
lines changed
  • nix-script-directives/src

1 file changed

+2
-2
lines changed

nix-script-directives/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl Directives {
6868
match fields.get(field) {
6969
Some(value) => {
7070
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);
71+
anyhow::bail!("multiple `{}` directives but need a single one", field);
7272
}
7373

7474
Ok(Some(value[0]))
@@ -89,7 +89,7 @@ impl Directives {
8989
match parsed.kind() {
9090
SyntaxKind::NODE_ATTR_SET => Ok(Some(parsed)),
9191
other => anyhow::bail!(
92-
"I expected the `{}` directive to be a Nix record, but it was a `{:?}`",
92+
"`{}` directive should be a Nix record but is a `{:?}`",
9393
field,
9494
other
9595
),

0 commit comments

Comments
 (0)