From 004344f765e0a7471139c44562bc38af8ca8191b Mon Sep 17 00:00:00 2001 From: John Turner Date: Wed, 19 Apr 2023 03:01:03 -0400 Subject: reworded the error returned on invalid name value pair --- src/lib.rs | 2 +- tests/trybuild/invalid-attribute.stderr | 2 +- 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" -- cgit v1.2.3