diff --git a/example/attributes.adoc b/example/attributes.adoc index 32ae0cc..e4ca5e2 100644 --- a/example/attributes.adoc +++ b/example/attributes.adoc @@ -10,7 +10,7 @@ :ProductNumber: 1.2.3 // The product name with the current version :Product: {ProductName}{nbsp}{ProductNumber} -:ProductShort: {ProductName}{nbsp}{ProductNumber} +:ProductShort: {ProductShortName}{nbsp}{ProductNumber} // The name of the book :ProjectName: Release notes for {ProductShort} diff --git a/src/extra_fields.rs b/src/extra_fields.rs index d82b310..743ded5 100644 --- a/src/extra_fields.rs +++ b/src/extra_fields.rs @@ -50,7 +50,7 @@ impl TryFrom<&str> for DocTextStatus { "?" | "proposed" | "in progress" | "unset" => Ok(Self::InProgress), // TODO: Does "Upstream only" really mean to skip this RN? "-" | "rejected" | "upstream only" => Ok(Self::NoDocumentation), - _ => bail!("Unrecognized doc text status value: {:?}", string), + _ => Err(eyre!("Unrecognized doc text status value: {:?}", string)), } } }