summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2023-04-19 03:01:03 -0400
committerJohn Turner <jturner.usa@gmail.com>2023-04-19 03:01:03 -0400
commit004344f765e0a7471139c44562bc38af8ca8191b (patch)
treebebf94bf7e69e6e0e35a9ac830f2321477f60d03
parent4038d8be9593d556412ce9705a324785f7d9e125 (diff)
downloadget-004344f765e0a7471139c44562bc38af8ca8191b.tar.gz
reworded the error returned on invalid name value pair
-rw-r--r--src/lib.rs2
-rw-r--r--tests/trybuild/invalid-attribute.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9de35a6..27b847c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -171,7 +171,7 @@ mod get {
then {
Ok(Self::Method(s.value()))
} else {
- Err("invalid name value list in attribute".into())
+ Err("invalid name value pair in attribute".into())
}
}
}
diff --git a/tests/trybuild/invalid-attribute.stderr b/tests/trybuild/invalid-attribute.stderr
index e408bb0..f36da71 100644
--- a/tests/trybuild/invalid-attribute.stderr
+++ b/tests/trybuild/invalid-attribute.stderr
@@ -20,4 +20,4 @@ error: proc-macro derive panicked
15 | #[derive(Get)]
| ^^^
|
- = help: message: called `Result::unwrap()` on an `Err` value: "invalid name value list in attribute"
+ = help: message: called `Result::unwrap()` on an `Err` value: "invalid name value pair in attribute"